You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
532 B
27 lines
532 B
7 years ago
|
//
|
||
|
// Created by MightyPork on 2017/07/29.
|
||
|
//
|
||
|
|
||
|
#ifndef ESP_VT100_FIRMWARE_SYSCFG_H
|
||
|
#define ESP_VT100_FIRMWARE_SYSCFG_H
|
||
|
|
||
|
#include <esp8266.h>
|
||
|
|
||
|
// Size designed for the wifi config structure
|
||
|
// Must be constant to avoid corrupting user config after upgrade
|
||
|
#define SYSCONF_SIZE 200
|
||
|
|
||
|
typedef struct {
|
||
|
u32 uart_baudrate;
|
||
|
u8 uart_parity;
|
||
|
u8 uart_stopbits;
|
||
|
} SystemConfigBundle;
|
||
|
|
||
|
extern SystemConfigBundle * const sysconf;
|
||
|
|
||
|
void sysconf_apply_settings(void);
|
||
|
|
||
|
void sysconf_restore_defaults(void);
|
||
|
|
||
|
#endif //ESP_VT100_FIRMWARE_SYSCFG_H
|