From e16ec19e3a445c1156c990ed71628fb183332be9 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 12 Oct 2020 20:15:41 +0200 Subject: Initial commit --- config/fe_config.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config/fe_config.c (limited to 'config') diff --git a/config/fe_config.c b/config/fe_config.c new file mode 100644 index 0000000..f486cf0 --- /dev/null +++ b/config/fe_config.c @@ -0,0 +1,17 @@ +#ifndef __FE_CONFIG_H__ +#define __FE_CONFIG_H__ + +#include + +const struct fe_config_def fe_config = { + .bootloader_enable_pin = { FE_CONFIG_GPIOB, 0 }, + .bootloader_enable_level = 1, + .signature_disable_pin = { FE_CONFIG_GPIOB, 1 }, + .signature_disable_level = 1, + .usart = FE_CONFIG_USART1_PB7, + .baudrate = 115200, + /* The following string happens to be a valid COBS frame. */ + .welcome_string = "Fenris Bootloader\r\n(c) 2020 jaseg\r\nSee https://git.jaseg.de/fenris \r\n", +}; + +#endif /* __FE_CONFIG_H__ */ -- cgit