From c1188b418c812fe1afd28e3ba0a5c2afaaf1a4fc Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 30 Aug 2011 13:30:09 +0000 Subject: 2011-08-30 Peter Dufault * 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. --- c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'c/src/lib/libcpu/powerpc/mpc55xx/include/watchdog.h') 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 +#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 */ -- cgit v1.2.3