// Definizioni dei settaggi coordinatore #ifndef COORD_SETTINGS_H #define COORD_SETTINGS_H #define TRUE 1 #define FALSE 0 #define LOG_ENABLED 0 /****** Netowrk settings *******************/ #define SET_MSA_WAIT_PERIOD 4100 #define SET_MSA_PAN_ID 0x131 /******* Modem type definition ************** * * 0 modem G30 * 1 modem BG95 *******************************************/ #define MODEM_TYPE 1 /******* Eeprom type definition ************* * * 0 eeprom * 1 eeprom 512 *******************************************/ #define EEPROM_TYPE 0 /******* Board definition ******************/ //#define TEST_BOARD #define CC2530256 #define WD_AQ22 //#define DELAY_TENS //#define DEBUG #define HAL_PA_LNA #define WINETAQ #define HAL_AES FALSE #define HAL_FLASH TRUE #define HAL_UART FALSE #define HAL_DMA FALSE #define M41T81 #define HALNODEBUG #define MODEM_FORCE_RESET //#define HAL_UART_DMA 2 //#define SPI TRUE //#define POWER_SAVING /******* Modem select definition ***********/ #if defined MODEM_TYPE && (MODEM_TYPE == 0) #define WINETTX #elif defined MODEM_TYPE && (MODEM_TYPE == 1) #define WINETTX_BG95 // USER e PASSWD MQTT #define SET_MQTT_USER "winet_131" #define SET_MQTT_PASS "KyahcuK5" #else #error "Define a modem type" #endif /******* Eeprom select definition **********/ #if defined EEPROM_TYPE && (EPPROM_TYPE == 0) #define EPROM #elif defined EEPROM_TYPE && (EEPROM_TYPE == 1) #define EPROM512 #else #error "Define a eeprom type" #endif /******* Sensor definition *****************/ //#define WEBCAM //#define WINETHP //#define DISTOMETRI //#define SMEC300 //#define SM100 //#define WATERMARK #define PIOGGIA #define VENTO //#define SHT1X //#define SHT11_SERRA //#define SHT2X #define SHT3X //#define SHT1xBEN //#define SPS30 //#define BMP180 //#define DS18B20 //#define FASA200SS //#define PRESS0 //#define PRESS1 //#define PRESS2 //#define PRESS3 //#define FLOW0 //#define FLOW1 //#define DEC5TE_P04 //#define SENTEK_10A //#define SENTEK_10B //#define SENTEK_10C //#define SENTEK_10D //#define SENTEK_10E //#define SENTEK_10F //#define SENTEK_30 //#define SENTEK_30_SAL //#define SENTEK_30_B //#define SENTEK_30_B_SAL //#define SENTEK_30_C //#define SENTEK_60 //#define SENTEK_60_SAL //#define SENTEK_60_B //#define SENTEK_60_SAL_B //#define SENTEK_60_C //#define SENTEK_90 //#define SENTEK_90_SAL //#define SENTEK_120 //#define SENTEK_120_SAL //#define DECGS3_P04 //#define MPS6_P04 //#define DECCDT //#define FLORA_1 //#define ACC_TDR //#define ACC_TDR_2 //#define ACC_TDR_3 //#define ACC_TDR_4 //#define ACC_TDR_5 //#define ACC_TDR_6 //#define ACC_TDTP //#define DS18B20 //#define WHPIN0DIFF_2048 //#define WHPIN1DIFF_2048 //#define WHPIN2DIFF_2048 //#define WHPIN2DIFF_4096 //#define WHPIN3DIFF_2048 //#define WHPIN3DIFF_4096 //#define WHPIN0_1024 //#define WHPIN0_2048 //#define WHPIN0_4096 //#define WHPIN1_1024 //#define WHPIN1_2048 //#define WHPIN1_4096 //#define WHPIN2_1024 //#define WHPIN2_2048 //#define WHPIN2_4096 //#define WHPIN3_1024 //#define WHPIN3_2048 //#define WHPIN3_4096 //#define WHPIN4_2048 //#define WHPIN4_4096 //#define WHPIN5_2048 //#define WHPIN5_4096 //#define WHPIN6_2048 //#define WHPIN6_4096 //#define WHPIN7_2048 //#define WHPIN7_4096 #endif // COORD_SETTINGS_H // Definizioni dei settaggi router #ifndef ROUTER_SETTINGS_H #define ROUTER_SETTINGS_H #define TRUE 1 #define FALSE 0 #define LOG_ENABLED 1 /****** Netowrk settings *******************/ #define SET_MSA_WAIT_PERIOD 4100 #define SET_MSA_PAN_ID 0x131 /******* Eeprom type definition ************* * * 0 eeprom * 1 eeprom 512 *******************************************/ #define EEPROM_TYPE 0 /******* Eeprom select definition **********/ #if defined EEPROM_TYPE && (EPPROM_TYPE == 0) #define EPROM #elif defined EEPROM_TYPE && (EEPROM_TYPE == 1) #define EPROM512 #else #error "Define a eeprom type" #endif /******* Board definition ******************/ #define CC2530256 #define WD_AQ22 //#define CREA //#define BOOST_FORO #define HAL_PA_LNA #define WINETAQ #define M41T81 #define HAL_AES FALSE #define HAL_DMA TRUE #define HAL_FLASH TRUE //#define SPI TRUE //#define POWER_SAVING #define ASSERT_WHILE #define V3_MQTT_SERVER /******* Sensor definition *****************/ //#define WINETHP //#define WATERMARK //#define SM100 //#define SMEC300 #define SHT3X //#define SHT1X //#define SHT11_SERRA //#define DEC5TE_P04 //#define SENTEK_10A //#define SENTEK_10B //#define SENTEK_10C //#define SENTEK_10D //#define SENTEK_10E //#define SENTEK_10F //#define SENTEK_30 //#define SENTEK_30_SAL //#define SENTEK_30_B //#define SENTEK_30_B_SAL //#define SENTEK_60 //#define SENTEK_60_SAL //#define SENTEK_60_B //#define SENTEK_60_SAL_B //#define SENTEK_90 //#define SENTEK_90_SAL //#define FLORA_1 //#define MPS6_P04 //#define DECCDT //#define PIOGGIA //#define VENTO //#define PRESS0 //#define PRESS1 //#define PRESS2 //#define PRESS3 //#define FLOW0 //#define WHPIN0DIFF_2048 //#define WHPIN1DIFF_2048 //#define WHPIN2DIFF_2048 //#define WHPIN3DIFF_2048 //#define WHPIN0_2048 //#define WHPIN1_2048 //#define WHPIN2_2048 //#define WHPIN3_2048 //#define WHPIN4_2048 //#define WHPIN5_2048 //#define WHPIN6_2048 //#define WHPIN7_2048 //#define WHPIN0_4096 //#define WHPIN1_4096 //#define WHPIN2_4096 //#define WHPIN3_4096 //#define WHPIN4_4096 //#define WHPIN5_4096 //#define WHPIN6_4096 //#define WHPIN7_4096 //#define DS18B20 //#define RS485 #endif // ROUTER_SETTINGS_H