From 0c827a97390cd662b46fa077510c521c20859b1e Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sat, 7 Mar 2015 16:29:21 +0000 Subject: [PATCH] Fix typo in CC26xx WDT-related macros --- cpu/cc26xx/dev/contiki-watchdog.c | 6 +++--- cpu/cc26xx/ti-lib.h | 36 +++++++++++++++---------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/cpu/cc26xx/dev/contiki-watchdog.c b/cpu/cc26xx/dev/contiki-watchdog.c index 8241b5045..2c833c9d4 100644 --- a/cpu/cc26xx/dev/contiki-watchdog.c +++ b/cpu/cc26xx/dev/contiki-watchdog.c @@ -54,7 +54,7 @@ void watchdog_init(void) { - ti_lib_wathdog_reload_set(0xFFFFF); + ti_lib_watchdog_reload_set(0xFFFFF); } /*---------------------------------------------------------------------------*/ /** @@ -63,7 +63,7 @@ watchdog_init(void) void watchdog_start(void) { - ti_lib_wathdog_reset_enable(); + ti_lib_watchdog_reset_enable(); } /*---------------------------------------------------------------------------*/ /** @@ -72,7 +72,7 @@ watchdog_start(void) void watchdog_periodic(void) { - ti_lib_wathdog_int_clear(); + ti_lib_watchdog_int_clear(); } /*---------------------------------------------------------------------------*/ /** diff --git a/cpu/cc26xx/ti-lib.h b/cpu/cc26xx/ti-lib.h index df5e2cf39..e545ac501 100644 --- a/cpu/cc26xx/ti-lib.h +++ b/cpu/cc26xx/ti-lib.h @@ -640,24 +640,24 @@ /* watchdog.h */ #include "driverlib/watchdog.h" -#define ti_lib_wathdog_running(...) WatchdogRunning(__VA_ARGS__) -#define ti_lib_wathdog_enable(...) WatchdogEnable(__VA_ARGS__) -#define ti_lib_wathdog_reset_enable(...) WatchdogResetEnable(__VA_ARGS__) -#define ti_lib_wathdog_reset_disable(...) WatchdogResetDisable(__VA_ARGS__) -#define ti_lib_wathdog_lock(...) WatchdogLock(__VA_ARGS__) -#define ti_lib_wathdog_unlock(...) WatchdogUnlock(__VA_ARGS__) -#define ti_lib_wathdog_lock_state(...) WatchdogLockState(__VA_ARGS__) -#define ti_lib_wathdog_reload_set(...) WatchdogReloadSet(__VA_ARGS__) -#define ti_lib_wathdog_reload_get(...) WatchdogReloadGet(__VA_ARGS__) -#define ti_lib_wathdog_value_get(...) WatchdogValueGet(__VA_ARGS__) -#define ti_lib_wathdog_int_register(...) WatchdogIntRegister(__VA_ARGS__) -#define ti_lib_wathdog_int_unregister(...) WatchdogIntUnregister(__VA_ARGS__) -#define ti_lib_wathdog_int_enable(...) WatchdogIntEnable(__VA_ARGS__) -#define ti_lib_wathdog_int_status(...) WatchdogIntStatus(__VA_ARGS__) -#define ti_lib_wathdog_int_clear(...) WatchdogIntClear(__VA_ARGS__) -#define ti_lib_wathdog_int_type_set(...) WatchdogIntTypeSet(__VA_ARGS__) -#define ti_lib_wathdog_stall_enable(...) WatchdogStallEnable(__VA_ARGS__) -#define ti_lib_wathdog_stall_disable(...) WatchdogStallDisable(__VA_ARGS__) +#define ti_lib_watchdog_running(...) WatchdogRunning(__VA_ARGS__) +#define ti_lib_watchdog_enable(...) WatchdogEnable(__VA_ARGS__) +#define ti_lib_watchdog_reset_enable(...) WatchdogResetEnable(__VA_ARGS__) +#define ti_lib_watchdog_reset_disable(...) WatchdogResetDisable(__VA_ARGS__) +#define ti_lib_watchdog_lock(...) WatchdogLock(__VA_ARGS__) +#define ti_lib_watchdog_unlock(...) WatchdogUnlock(__VA_ARGS__) +#define ti_lib_watchdog_lock_state(...) WatchdogLockState(__VA_ARGS__) +#define ti_lib_watchdog_reload_set(...) WatchdogReloadSet(__VA_ARGS__) +#define ti_lib_watchdog_reload_get(...) WatchdogReloadGet(__VA_ARGS__) +#define ti_lib_watchdog_value_get(...) WatchdogValueGet(__VA_ARGS__) +#define ti_lib_watchdog_int_register(...) WatchdogIntRegister(__VA_ARGS__) +#define ti_lib_watchdog_int_unregister(...) WatchdogIntUnregister(__VA_ARGS__) +#define ti_lib_watchdog_int_enable(...) WatchdogIntEnable(__VA_ARGS__) +#define ti_lib_watchdog_int_status(...) WatchdogIntStatus(__VA_ARGS__) +#define ti_lib_watchdog_int_clear(...) WatchdogIntClear(__VA_ARGS__) +#define ti_lib_watchdog_int_type_set(...) WatchdogIntTypeSet(__VA_ARGS__) +#define ti_lib_watchdog_stall_enable(...) WatchdogStallEnable(__VA_ARGS__) +#define ti_lib_watchdog_stall_disable(...) WatchdogStallDisable(__VA_ARGS__) /*---------------------------------------------------------------------------*/ #endif /* TI_LIB_H_ */ /*---------------------------------------------------------------------------*/