EZR

Dependencies:   CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04

Fork of smartRamalKW by Equipe Firmware V2COM

settings.h

Committer:
tpadovani
Date:
2015-07-02
Revision:
8:e8d86c66283c
Parent:
7:fe8e827f4d1b
Child:
9:e501499af4ef

File content as of revision 8:e8d86c66283c:

#ifndef SETTINGS_H
#define SETTINGS_H

//#define TEST_MODE 1    // Usado para testar na placa de desenvolvimento

#define WATCHDOG_INTERVAL 0.1  // intervalo de alimentacao do watchdog, em segundos (float)
#define RELE_ON 1
#define RELE_OFF 0
#define ESTADO_RELE_INDEFINIDO  3   // Sem estado anterior
#define ESTADO_RELE_ABERTO      2   // Significa que ultimo comando foi de corte
#define ESTADO_RELE_FECHADO     1   // Significa que ultimo comando foi de religacao
#define SENSOR_COM_FORNECIMENTO true
#define SENSOR_SEM_FORNECIMENTO false

#define DEFAULT_RELIGAR_LARGURA_PULSO_MS 150
#define DEFAULT_CORTAR_LARGURA_PULSO_MS 150
#define DEFAULT_DELAY_SENSOR_MS 500
#define DEFAULT_INTERVALO_SILENCIO_S 2
#define DEFAULT_INTERVALO_WD_NETWORK_S 1800
#define DEFAULT_LIMITE_TENSAO_SENSOR_V 40
#define DEFAULT_SAMPLES 500
#define DEFAULT_SAMPLES_DELAY_US 2000
#define DEFAULT_SAMPLES_ANG_COEF 12071
#define DEFAULT_SAMPLES_LIN_COEF 0

#endif