controller-legacy/include/config.h
Tobias Reisinger ec720e7617 add: vendor directory
add: cli (argparse)
add: test runner
2020-04-18 01:24:36 +02:00

27 lines
458 B
C

#ifndef CONTROLLER_CONFIG_H
#define CONTROLLER_CONFIG_H
#include <stdint.h>
#include <constants.h>
#include <enums.h>
typedef struct
{
uint8_t pin;
relay_driver_t driver;
} config_relay_t;
typedef struct
{
char *file;
run_type_t run_type;
char name[MAX_NAME_LENGTH + 1];
uint16_t discovery_port;
uint8_t relay_count;
config_relay_t *relay_configs;
} config_t;
extern config_t global_config;
#endif //CONTROLLER_CONFIG_H