@mihai.aldea
It's working on my OPi One with Armbian. MySensors and TMRh20 works!
Only in ./MySensors: bin
Only in ./MySensors: build
diff -ruBdX ex ./_MySensors/drivers/RF24/RF24.cpp ./MySensors/drivers/RF24/RF24.cpp
--- ./_MySensors/drivers/RF24/RF24.cpp<>2017-01-28 10:24:03.557215399 +0200
+++ ./MySensors/drivers/RF24/RF24.cpp<->2017-01-28 10:58:51.757543157 +0200
@@ -29,7 +29,7 @@
LOCAL RF24_receiveCallbackType RF24_receiveCallback = NULL;
#endif
.
-#ifdef LINUX_SPI_BCM
+#if defined (LINUX_SPI_BCM) || (LINUX_SPI_SPIDEV)
uint8_t spi_rxbuff[32+1] ; //SPI receive buffer (payload max 32 bytes)
uint8_t spi_txbuff[32+1] ; //SPI transmit buffer (payload max 32 bytes + 1 byte for the command)
#endif
@@ -56,7 +56,7 @@
<----->RF24_csn(LOW);
<----->// timing
<----->delayMicroseconds(10);
-#ifdef LINUX_SPI_BCM
+#if defined (LINUX_SPI_BCM) || (LINUX_SPI_SPIDEV)
<----->uint8_t * prx = spi_rxbuff;
<----->uint8_t * ptx = spi_txbuff;
<----->uint8_t size = len + 1; // Add register value to transmit buffer
diff -ruBdX ex ./_MySensors/Makefile.inc ./MySensors/Makefile.inc
--- ./_MySensors/Makefile.inc<->2017-01-28 10:49:53.990638008 +0200
+++ ./MySensors/Makefile.inc<-->2017-01-28 11:12:57.601198157 +0200
@@ -1,5 +1,5 @@
SOC=H3
-CPPFLAGS=-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV.
+CPPFLAGS=-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DLINUX_SPI_SPIDEV -DMY_RF24_CE_PIN=7 -DSPI_S
LDFLAGS=-pthread.
PREFIX=/usr/local
CC=gcc