From cc2271840a70ef10e13dd3e30422842e01e4ccc7 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 6 Feb 2021 15:31:03 +0100 Subject: [PATCH] changes --- cube/User/Inc/eeprom.h | 2 +- cube/User/Src/main2.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cube/User/Inc/eeprom.h b/cube/User/Inc/eeprom.h index 187956e..c47c4da 100644 --- a/cube/User/Inc/eeprom.h +++ b/cube/User/Inc/eeprom.h @@ -9,7 +9,7 @@ #define EEPROM_WRITE_BLOCK_SIZE 32 -#define EEPROM_AFTER_WRITE_DELAY 7 +#define EEPROM_AFTER_WRITE_DELAY 10 typedef struct __attribute__((__packed__)) s_eepromHeader { diff --git a/cube/User/Src/main2.c b/cube/User/Src/main2.c index bc31913..34d4002 100644 --- a/cube/User/Src/main2.c +++ b/cube/User/Src/main2.c @@ -27,6 +27,11 @@ void my_errorHandler() { show(LED_RED, ON); } +void second_tick(void *handle) { + logMsg("Tick"); +} + + void my_setup_2() { show(LED_RED, OFF); @@ -37,9 +42,11 @@ void my_setup_2() { configInit(); - wizInit(); +// wizInit(); - cmdHandlerInit(); +// cmdHandlerInit(); + + schAdd(second_tick, NULL, 0, 60*1000); logMsg("Application running"); } @@ -70,3 +77,4 @@ void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) { eepromSpiTxCpltCallback(hspi); } } +