mirror of
https://github.com/thelsing/knx.git
synced 2026-02-23 13:50:35 +01:00
move knx-linux and knxPyton to examples dir
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]---------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user