add config bits.

This commit is contained in:
Thomas Cherryhomes 2019-02-03 12:40:11 -06:00
parent fa9a8a4a32
commit dd38d9ed95
2 changed files with 37 additions and 0 deletions

26
config.c Normal file
View File

@ -0,0 +1,26 @@
#include "config.h"
#define true 1
#define false 0
ConfigInfo config;
void config_set_defaults(void)
{
config.baud=baud57600;
}
void config_init(void)
{
config_load();
}
void config_load(void)
{
config_set_defaults();
}
void config_save(void)
{
}

11
config.h Normal file
View File

@ -0,0 +1,11 @@
#include <Serial.h>
typedef struct _configInfo {
int baud;
} ConfigInfo;
void config_init(void);
void config_load(void);
void config_save(void);