controller-legacy/include/config.h

33 lines
706 B
C
Raw Normal View History

2020-01-07 01:23:16 +00:00
#ifndef CONTROLLER_CONFIG_H
#define CONTROLLER_CONFIG_H
2020-02-08 12:50:54 +00:00
#include <log_levels.h>
2020-02-09 23:58:17 +00:00
/**
2020-04-13 22:50:55 +00:00
* @brief Limit the maximum length of a controller/relay/etc name
2020-02-09 23:58:17 +00:00
*
2020-04-13 22:50:55 +00:00
* The NULL terminator is not included. Arrays of length #MAX_NAME_LENGTH + 1 are required.
2020-02-09 23:58:17 +00:00
*/
2020-04-13 22:50:55 +00:00
#define MAX_NAME_LENGTH 128
2020-01-07 01:23:16 +00:00
2020-02-09 23:58:17 +00:00
/**
* @brief Maximum number of dbs for the databases for the MDB_env
*
* Used when calling mdb_env_set_maxdbs() in database_setup()
*/
2020-01-07 01:23:16 +00:00
#define MDB_MAXDBS 8
2020-02-09 23:58:17 +00:00
/**
* @brief Indicates to which level to log
*
* @see include/log_levels.h
*/
2020-02-23 00:13:27 +00:00
#define LOG_LEVEL LOG_LEVEL_DEBUG
/**
* @brief How many milli seconds to wait until poll timeout in main loop
*/
#define ACCEPT_TIMEOUT_MSECONDS 1000
2020-02-08 12:50:54 +00:00
2020-01-07 01:23:16 +00:00
#endif //CONTROLLER_CONFIG_H