summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-08-30 13:30:09 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-08-30 13:30:09 +0000
commitc1188b418c812fe1afd28e3ba0a5c2afaaf1a4fc (patch)
treece1e73893b8c74d2f1e5b7580a6f9342136be827 /c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h
parent2011-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-c1188b418c812fe1afd28e3ba0a5c2afaaf1a4fc.tar.bz2
2011-08-30 Peter Dufault <dufault@hda.com>
* mpc55xx/misc/flash_support.c: New file. * Makefile.am: Reflect change above. * mpc55xx/include/mpc55xx.h: Add definitions for the FLASH interface and two memory protect interfaces. Add modifications to eliminate warnings in some of the cache macros. * mpc55xx/include/regs.h: Add some structure tag names for some structures that I needed access to. Don't define the ALTCADR for the MPC5554 - it is reserved and acess casues an exception. Hide the C99 designated initializers when compiling with C++. Add some support for the EQADC. * mpc55xx/include/esci.h, mpc55xx/include/watchdog.h: Add C++ protection.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h b/c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h
index 2c00621076..f0506afbc9 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h
@@ -27,6 +27,10 @@
#include <libcpu/powerpc-utility.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
static inline void mpc55xx_watchdog_clear()
{
PPC_SET_SPECIAL_PURPOSE_REGISTER( BOOKE_TSR, BOOKE_TSR_WIS);
@@ -56,4 +60,8 @@ static inline rtems_status_code mpc55xx_watchdog_set_time_base_bit( uint32_t bit
return RTEMS_SUCCESSFUL;
}
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* LIBCPU_POWERPC_MPC55XX_WATCHDOG_H */