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
|
@ -79,7 +79,7 @@ typedef uint32_t rtimer_clock_t;
|
|||
* @{
|
||||
*/
|
||||
#ifndef WATCHDOG_CONF_ENABLE
|
||||
#define WATCHDOG_CONF_ENABLE 1 /**<Enable the watchdog timer */
|
||||
#define WATCHDOG_CONF_ENABLE 1 /**< Enable the watchdog timer */
|
||||
#endif
|
||||
/** @} */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
|
@ -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