32 lines
710 B
C
32 lines
710 B
C
#ifndef CONTROLLER_CONFIG_H
|
|
#define CONTROLLER_CONFIG_H
|
|
|
|
#include <log_levels.h>
|
|
|
|
/**
|
|
* @brief Limit the maximum length of a controller name
|
|
*
|
|
* The NULL terminator is not included. Arrays of length #CONTROLLER_NAME_LENGTH + 1 are required.
|
|
*/
|
|
#define CONTROLLER_NAME_LENGTH 128
|
|
|
|
/**
|
|
* @brief Maximum number of dbs for the databases for the MDB_env
|
|
*
|
|
* Used when calling mdb_env_set_maxdbs() in database_setup()
|
|
*/
|
|
#define MDB_MAXDBS 8
|
|
|
|
/**
|
|
* @brief Indicates to which level to log
|
|
*
|
|
* @see include/log_levels.h
|
|
*/
|
|
#define LOG_LEVEL LOG_LEVEL_DEBUG
|
|
|
|
/**
|
|
* @brief How many milli seconds to wait until poll timeout in main loop
|
|
*/
|
|
#define ACCEPT_TIMEOUT_MSECONDS 1000
|
|
|
|
#endif //CONTROLLER_CONFIG_H
|