#ifndef __CONFIG_H__ #define __CONFIG_H__ #ifdef __cplusplus extern "C" { #endif #include "stm32f4xx.h" #define UART_PARITY_NONE (0) #define UART_PARITY_ODD (1) #define UART_PARITY_EVEN (2) #define UART_DEFAULT_BAUDRATE (19200) #define UART_DEFAULT_PARITY (UART_PARITY_NONE) #define UART_DEFAULT_STOPBITS (1) #define UART_DEFAULT_ADDR (0x01) #define UART_DEFAULT_RESV (0xFF) struct file_config_s { uint32_t id; uint32_t baudrate; uint8_t parity; uint8_t stopbits; uint8_t addr; uint8_t resv; uint32_t checksum; }; void file_config_update(void); #ifdef __cplusplus } #endif #endif /* __CONFIG_H__ */