I have a stack of TinyDuino boards including
TinyZero and 433MHZ Long Range Radio TinyShield.
I previously has this processor and had no problem compiling the sketch and uploading it.
With the TinyZero now I get the following error.
RadioHead.h:463:29: error: RHutil/atomic.h: No such file or directory
#include <RHutil/atomic.h>
Obviously there is a file missing, when I tried to copy the file from the web I got another error saying:
sketch/RHHardwareSPI.cpp: In member function 'virtual void RHHardwareSPI::begin()':
RHHardwareSPI.cpp:99:58: error: invalid conversion from 'uint8_t {aka unsigned char}' to 'BitOrder' [-fpermissive]
_settings = SPISettings(frequency32, bOrder, dataMode);
^
In file included from sketch/RHGenericSPI.h:13:0,
from sketch/RHHardwareSPI.h:10,
from sketch/RHHardwareSPI.cpp:7:
/home/ktsirakos/.arduino15/packages/TinyCircuits/hardware/samd/1.0.8/libraries/SPI/SPI.h:50:3: error: initializing argument 2 of 'SPISettings::SPISettings(uint32_t, BitOrder, uint8_t)' [-fpermissive]
SPISettings(uint32_t clock, BitOrder bitOrder, uint8_t dataMode) {
^
What the board does is to get Accelerometer values and send it to a receiver with the same RadioHead board.
I think it is because of the ARM of the TinyZero processor because the RadioHead.h header file includes these lines of code.
// This is an attempt to make a portable atomic block
#if (RH_PLATFORM == RH_PLATFORM_ARDUINO)
#if defined(__arm__)
#include "atomic.h"
#else
#include <util/atomic.h>
#endif
#define ATOMIC_BLOCK_START ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
#define ATOMIC_BLOCK_END }
#elif (RH_PLATFORM == RH_PLATFORM_UNO32)
#include <peripheral/int.h>
#define ATOMIC_BLOCK_START unsigned int __status = INTDisableInterrupts(); {
#define ATOMIC_BLOCK_END } INTRestoreInterrupts(__status);
#else
// TO BE DONE:
#define ATOMIC_BLOCK_START
#define ATOMIC_BLOCK_END
#endif
Any suggestion if it is possible to run these 2 together? (TinyZero and RadioHead)?
Thank you very much in advance.