Skip to content
Snippets Groups Projects
Commit b8b43f4b authored by Tobias Klaus's avatar Tobias Klaus
Browse files

03_TMR: properly initalize counter

parent 492cc6ef
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ static void watchdog_entry(cyg_addrword_t data)
void watchdog_init(){
ezs_counter_init();
cyg_thread_create(watchdog_prio, /* priority 0-31, 0 represents highest priority */
&watchdog_entry, /* thread entry point */
0, /* data for thread_entry */
......@@ -39,7 +40,7 @@ void watchdog_init(){
watchdog_thread_stack, /* stack address */
STACKSIZE, /* stack size */
&watchdog_thread_handle, /* thread handle */
&watchdog_thread); /* thread data (internally used by kernel) */
&watchdog_thread); /* thread data (internally used by kernel) */
}
void watchdog(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment