How can I implement it to the USI09 module? Our aim is understanding timer event or threads works properly.
I try below 2 functions. But I could not understand how they are using watchdog timer. I did not set WATCHDOG TIMER anywhere in the code so I am not sure about the exact working and timing. How can I set whathdog timeout?.
#define MAXIMUM_ALLOWED_INTERVAL_BETWEEN_MONITOR_UPDATES (10*1000*MILLISECONDS)
I use below function at the begining of the thread
wiced_register_system_monitor( &my_thread_monitor1, MAXIMUM_ALLOWED_INTERVAL_BETWEEN_MONITOR_UPDATES );
I use below function at the end of the thread
wiced_update_system_monitor( &my_thread_monitor1, MAXIMUM_ALLOWED_INTERVAL_BETWEEN_MONITOR_UPDATES );
PS: When I put GLOBAL_DEFINES := APPLICATION_WATCHDOG_TIMEOUT_SECONDS=20 to the make file. My code did not work. So I replaced it.
The watchdog initialize in platform_watchdog.c when system bring up!
And watchdog could NOT to disable when watchdog start!
You could check the STM32F2xx Reference Manual for the detail restriction
The system_monitor is software mechanism to hook up your thread monitor handler with watchdog timer!