diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-08 18:34:33 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-08 18:34:33 -0400 |
commit | 3193ae1326c738b54067674a6073287f90ecaa85 (patch) | |
tree | 02343147bf2c1c31156041e6cce585f81a9f4d1e /wirish/include | |
parent | fd8456c37c7db78e93913d9f12c9b1407d3e4680 (diff) | |
download | librambutan-3193ae1326c738b54067674a6073287f90ecaa85.tar.gz librambutan-3193ae1326c738b54067674a6073287f90ecaa85.zip |
Bring back <wirish/wirish_debug.h>.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/include')
-rw-r--r-- | wirish/include/wirish/wirish.h | 2 | ||||
-rw-r--r-- | wirish/include/wirish/wirish_debug.h | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/wirish/include/wirish/wirish.h b/wirish/include/wirish/wirish.h index 6810e4f..360b502 100644 --- a/wirish/include/wirish/wirish.h +++ b/wirish/include/wirish/wirish.h @@ -39,7 +39,7 @@ #include <wirish/bit_constants.h> #include <wirish/pwm.h> #include <wirish/ext_interrupts.h> -/* FIXME put this back when you can #include <wirish/wirish_debug.h> */ +#include <wirish/wirish_debug.h> #include <wirish/wirish_math.h> #include <wirish/wirish_time.h> /* FIXME put this back when you can #include <wirish/HardwareSPI.h> */ diff --git a/wirish/include/wirish/wirish_debug.h b/wirish/include/wirish/wirish_debug.h index cb1be3d..4edfd27 100644 --- a/wirish/include/wirish/wirish_debug.h +++ b/wirish/include/wirish/wirish_debug.h @@ -42,9 +42,7 @@ * * @see enableDebugPorts() */ -static inline void disableDebugPorts(void) { - afio_cfg_debug_ports(AFIO_DEBUG_NONE); -} +void disableDebugPorts(void); /** * @brief Enable the JTAG and Serial Wire (SW) debug ports. @@ -54,8 +52,6 @@ static inline void disableDebugPorts(void) { * * @see disableDebugPorts() */ -static inline void enableDebugPorts(void) { - afio_cfg_debug_ports(AFIO_DEBUG_FULL_SWJ); -} +void enableDebugPorts(void); #endif |