Felícito Manzano
/
DTK_Guaria2_ABInBev
Proyecto ABInBev para la tarjeta Guaria 1/2.
Diff: main.cpp
- Revision:
- 4:9b1a4a9b2cdf
- Parent:
- 3:6e55713bc91d
- Child:
- 5:07720e3f99d2
diff -r 6e55713bc91d -r 9b1a4a9b2cdf main.cpp --- a/main.cpp Fri Jul 01 19:19:46 2022 +0000 +++ b/main.cpp Fri Jul 01 21:49:26 2022 -0600 @@ -18,7 +18,6 @@ #include "mbed.h" #include "platform/mbed_thread.h" #include "stm32f4xx_hal_iwdg.h" -//#include "stm32f0xx_hal_iwdg.h" #include "BufferedSerial.h" #include "ics5_pinout.hpp" #include "jq8400_voice.hpp" @@ -351,10 +350,11 @@ * y el valor máximo en caso que no se actualice se genera el reinicio. */ my_iwdg.Instance = IWDG; - my_iwdg.Init.Prescaler = IWDG_PRESCALER_256; + my_iwdg.Init.Prescaler = IWDG_PRESCALER_32; my_iwdg.Init.Reload = 0x0FFF; - //my_iwdg.Init.Window = IWDG_WINDOW_DISABLE; HAL_IWDG_Init(&my_iwdg); + + // Inicializar la EEPROM eeprom_size = ep.getSize(); while (true) { @@ -381,7 +381,6 @@ #endif } - //! Verificar si debe consultarse el estado del sensor de lluvia. if (flag_query_rain_sensor) { //process_rainSensor(); @@ -409,7 +408,6 @@ processPlaylist(); } - //! Actualizar Watchdog HAL_IWDG_Refresh(&my_iwdg); }