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:
George Oikonomou 2014-05-18 13:03:27 +02:00
parent b864ec2b71
commit 807ee624e4
3 changed files with 31 additions and 11 deletions

View file

@ -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
/** @} */
/*---------------------------------------------------------------------------*/

View file

@ -203,9 +203,7 @@ main(void)
autostart_start(autostart_processes);
#if WATCHDOG_CONF_ENABLE
watchdog_start();
#endif
fade(LEDS_ORANGE);
while(1) {