STIMA  3
Macros
stima-config.h File Reference
#include <sensors_config.h>
#include <constantdata_config.h>
#include <stima_module.h>
Include dependency graph for stima-config.h:

Go to the source code of this file.

Macros

#define MODULE_MAIN_VERSION   (3)
 Module main version.
 
#define MODULE_MINOR_VERSION   (11)
 Module minor version.
 
#define MODULE_CONFIGURATION_VERSION   (2)
 Module version of compatibile configuration. If you change it, you have to reconfigure.
 
#define MODULE_TYPE   (STIMA_MODULE_TYPE_REPORT_GSM)
 Type of module. It is defined in registers.h.
 
#define USE_MQTT   (false)
 MQTT support.
 
#define USE_LCD   (true)
 LCD support.
 
#define USE_SDCARD   (false | USE_MQTT)
 SD-Card support.
 
#define USE_RTC   (true)
 RTC support.
 
#define USE_TIMER_1   (!USE_RTC)
 Timer 1 support instead of RTC.
 
#define USE_RPC_METHOD_CONFIGURE   (true)
 RPC method for station configuration.
 
#define USE_RPC_METHOD_PREPARE   (false)
 RPC method for prepare sensors.
 
#define USE_RPC_METHOD_PREPANDGET   (false)
 RPC method for prepare and get data from sensors.
 
#define USE_RPC_METHOD_GETJSON   (false)
 RPC method for get sensor's data.
 
#define USE_RPC_METHOD_REBOOT   (true)
 RPC method for reboot station.
 
#define USE_RPC_METHOD_RECOVERY   (true)
 RPC method for recovery data written on SD card from station.
 
#define CONFIGURATION_DEFAULT_TH_ADDRESS   (I2C_TH_DEFAULT_ADDRESS)
 Default i2c i2c-th address.
 
#define CONFIGURATION_DEFAULT_RAIN_ADDRESS   (I2C_RAIN_DEFAULT_ADDRESS)
 Default i2c i2c-rain address.
 
#define CONFIGURATION_RESET_PIN   (8)
 Input pin for reset configuration at startup.
 
#define CONFIGURATION_DEFAULT_NTP_SERVER   (NTP_DEFAULT_SERVER)
 Default ntp server.
 
#define CONFIGURATION_DEFAULT_ETHERNET_DHCP_ENABLE   (ETHERNET_DEFAULT_DHCP_ENABLE)
 Default DHCP status.
 
#define CONFIGURATION_DEFAULT_ETHERNET_MAC   (ETHERNET_DEFAULT_MAC)
 Default mac address.
 
#define CONFIGURATION_DEFAULT_ETHERNET_IP   (ETHERNET_DEFAULT_IP)
 Default ip address.
 
#define CONFIGURATION_DEFAULT_ETHERNET_NETMASK   (ETHERNET_DEFAULT_NETMASK)
 Default netmask address.
 
#define CONFIGURATION_DEFAULT_ETHERNET_GATEWAY   (ETHERNET_DEFAULT_GATEWAY)
 Default gateway address.
 
#define CONFIGURATION_DEFAULT_ETHERNET_PRIMARY_DNS   (ETHERNET_DEFAULT_PRIMARY_DNS)
 Default primary dns address.
 
#define SENSOR_ERROR_COUNT_MAX   (20)
 
#define USE_POWER_DOWN   (false)
 Enable or disable power down.
 
#define DEBOUNCING_POWER_DOWN_TIME_MS   (10)
 Debounce power down ms.
 
#define W5500_CHIP_SELECT_PIN   (10)
 Chip select pin for Wiznet W5500 ethernet module.
 
#define WDT_TIMER   (8)
 Watchdog timer for periodically check microprocessor block states. More...
 
#define RTC_FREQUENCY   (PCF8563_CLKOUT_FREQUENCY_SECONDS)
 Real time clock frequency for generating interrupt for awaken the microprocessor and execute timed tasks.
 
#define RTC_INTERRUPT_PIN   (6)
 Interrupt pin for rtc.
 
#define TIMER1_INTERRUPT_TIME_MS   (1000)
 Value in milliseconds for generating timer1 interrupt.
 
#define TIMER1_TCNT1_VALUE   (0xFFFFUL - (TIMER1_INTERRUPT_TIME_MS*1000UL/(1024 / (F_CPU/1000000)))+1)
 Timer1 timer overflow with 1024 prescaler.
 
#define USE_CONSTANTDATA_COUNT   (3)
 Constantdata count.
 
#define SENSORS_RETRY_COUNT_MAX   (3)
 Maximum number of retry for sensors reading.
 
#define SENSORS_RETRY_DELAY_MS   (50)
 Waiting for reading between two attempts.
 
#define SENSORS_TESTING_DELAY_S   (60)
 
#define DATA_PROCESSING_RETRY_COUNT_MAX   (2)
 Maximum number of retry for processing acquired data.
 
#define DATA_PROCESSING_RETRY_DELAY_MS   (500)
 Wait time between two attempts.
 
#define DATA_SAVING_RETRY_COUNT_MAX   (2)
 Maximum number of retry for saving data on SD-Card.
 
#define DATA_SAVING_DELAY_MS   (100)
 Wait time between two attempts.
 
#define MQTT_RETRY_COUNT_MAX   (3)
 Maximum number of retry for doing mqtt operations.
 
#define MQTT_DELAY_MS   (3000)
 Wait time between two attempts.
 
#define IP_STACK_TIMEOUT_MS   (MQTT_TIMEOUT_MS)
 IPStack timeout.
 
#define SUPERVISOR_CONNECTION_RETRY_COUNT_MAX   (3)
 Maximum number of retry for doing supervisor operations.
 
#define SUPERVISOR_CONNECTION_TIMEOUT_MS   (120000)
 Timeout for connecting.
 
#define NTP_RETRY_COUNT_MAX   (5)
 Maximum number of retry for doing ntp operations.
 
#define NTP_RETRY_DELAY_MS   (1000)
 Wait time between two NTP attempts.
 
#define NTP_TIME_FOR_RESYNC_S   (SECS_PER_DAY)
 Maximum seconds for resync time over ntp.
 
#define NTP_MAX_DIFF_VALID_TIME_S   (SECS_PER_DAY)
 
#define LCD_TIME_FOR_REINITIALIZE_S   (SECS_PER_DAY)
 Maximum seconds for reinitialize LCD.
 
#define DISPLAY_SET_MAX   (2)
 Max number of page to show on display when testing sensors.
 
#define ETHERNET_RETRY_COUNT_MAX   (5)
 Maximum number of retry for doing ethernet operations.
 
#define ETHERNET_RETRY_DELAY_MS   (ETHERNET_ATTEMPT_MS)
 Wait time between two attempts.
 
#define DATE_TIME_STRING_LENGTH   (25)
 Length of datetime string %04u-%02u-%02uT%02u:%02u:%02u.
 

Macro Definition Documentation

◆ WDT_TIMER

#define WDT_TIMER   (8)

Watchdog timer for periodically check microprocessor block states.

Possible value for WDT_TIMER are: WDTO_15MS, WDTO_30MS, WDTO_60MS, WDTO_120MS, WDTO_250MS, WDTO_500MS, WDTO_1S, WDTO_2S, WDTO_4S, WDTO_8S