move knx-linux and knxPyton to examples dir

This commit is contained in:
Thomas Kunze
2019-12-12 21:42:51 +01:00
parent 6d5914857a
commit 6765add06d
209 changed files with 42521 additions and 183 deletions

View File

@@ -1,5 +1,15 @@
#pragma once
#ifdef ARDUINO_ARCH_SAMD
#define SPI_SS_PIN 10
#define GPIO_GDO2_PIN 9
#define GPIO_GDO0_PIN 7
#else // Linux Platform (Raspberry Pi)
#define SPI_SS_PIN 8 // GPIO 8 (SPI_CE0_N) -> WiringPi: 10 -> Pin number on header: 24
#define GPIO_GDO2_PIN 25 // GPIO 25 (GPIO_GEN6) -> WiringPi: 6 -> Pin number on header: 22
#define GPIO_GDO0_PIN 24 // GPIO 24 (GPIO_GEN5) -> WiringPi: 5 -> Pin number on header: 18
#endif
#define USE_CEMI_SERVER
#define USE_RF
#define USE_TP

View File

@@ -13,20 +13,8 @@
#define RX_PACKET_TIMEOUT 20 // Wait 20ms for packet reception to complete
#define TX_PACKET_TIMEOUT 20 // Wait 20ms for packet reception to complete
//**************************** pins ******************************************//
#ifdef ARDUINO_ARCH_SAMD
#define SPI_SS_PIN 10
#define GPIO_GDO2_PIN 9
#define GPIO_GDO0_PIN 7
#elif ARDUINO_ARCH_ESP8266
#error KNX-RF not yet supported on ESP8266
#elif ARDUINO_ARCH_ESP32
#error KNX-RF not yet supported on ESP32
#else // Linux Platform
#ifdef __linux__ // Linux Platform
extern void delayMicroseconds (unsigned int howLong);
#define SPI_SS_PIN 8 // GPIO 8 (SPI_CE0_N) -> WiringPi: 10 -> Pin number on header: 24
#define GPIO_GDO2_PIN 25 // GPIO 25 (GPIO_GEN6) -> WiringPi: 6 -> Pin number on header: 22
#define GPIO_GDO0_PIN 24 // GPIO 24 (GPIO_GEN5) -> WiringPi: 5 -> Pin number on header: 18
#endif
/*----------------------[CC1101 - misc]---------------------------------------*/