Confine CC2538 WDT on/off conf inside the driver
Instead of requiring all calls to `watchdog_start` to be wrapped inside `#if WATCHDOG_CONF_ENABLE` guards, we control things from within the WDT driver itself. This commit also includes some minor documentation and indentation cleanups
This commit is contained in:
parent
b864ec2b71
commit
807ee624e4
3 changed files with 31 additions and 11 deletions
|
@ -203,9 +203,7 @@ main(void)
|
|||
|
||||
autostart_start(autostart_processes);
|
||||
|
||||
#if WATCHDOG_CONF_ENABLE
|
||||
watchdog_start();
|
||||
#endif
|
||||
fade(LEDS_ORANGE);
|
||||
|
||||
while(1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue