EZR
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
Diff: settings.h
- Revision:
- 31:ef0e073126a1
- Parent:
- 30:6222036a8c57
- Child:
- 32:dee631435a62
--- a/settings.h Tue Feb 23 20:45:18 2016 +0000 +++ b/settings.h Wed Feb 24 14:31:25 2016 +0000 @@ -1,16 +1,16 @@ #ifndef SETTINGS_H #define SETTINGS_H -#define MBED_COMPILER 1 -//#define NIC_SPIN 1 -//#define DIRECT_UART 1 // Usado para bypassar protocolo pino -//#define TEST_MODE 1 // Usado para testar na placa de desenvolvimento -//#define DEBUG_ENABLED 1 // Habilita log na USB UART -//#define RAMAL 1 // configura a aplicação para modo ramal (o normal é smart breaker) -//#define RELES_INVERTIDOS 1 +#define MBED_COMPILER 1 // habilitar para compilação no mbed compiler, comentar para IAR -//#define UART_8N2 -//#define WATCHDOG_ENABLED 1 +#define USE_PINO 1 // Usado para bypassar protocolo pino +//#define WATCHDOG_ENABLED 1 // habilita watchdog (para isso mbed deve ser compilada do fonto com o watchdog habilitado) +//#define RAMAL 1 // configura a aplicação para modo ramal (o normal é smart breaker) +//#define RELES_INVERTIDOS 1 // inverte reles de corte e religamento +//#define NIC_SPIN 1 // compilação para o hardware do NIC Spin +//#define TEST_MODE 1 // Usado para testar na placa de desenvolvimento Freedom Board +//#define DEBUG_ENABLED 1 // Habilita log na USB UART +//#define UART_8N2 // habilitar para configurar a serial para 8N2 #define MEDIDOR_DEFAULT_SN "\0\0\0\0\0\0\0" // para uso com equipamentos sem medidor @@ -60,7 +60,7 @@ #define DEFAULT_PIMA_VALIDADE_ENERGIA_REATIVA_CAPACITIVA_S 60 #define DEFAULT_PIMA_AUTOBAUD_ENABLE 1 #define DEFAULT_PIMA_AUTOBAUD_TIMEOUT_S 30 -#if ( defined( DIRECT_UART ) || defined ( TEST_MODE ) ) +#if ( ( !defined( USE_PINO ) ) || defined( TEST_MODE ) ) #define DEFAULT_RADIO_BAUDRATE_BPS 115200 #else #define DEFAULT_RADIO_BAUDRATE_BPS 125000 @@ -111,4 +111,4 @@ #define DEFAULT_CFG_DATA4 0x00000000 #endif -#endif +#endif // SETTINGS_H