diff --git a/cpu/stellaris_common/include/hw_adc.h b/cpu/stellaris_common/include/hw_adc.h index b93aea5a8d..7d742cdce0 100644 --- a/cpu/stellaris_common/include/hw_adc.h +++ b/cpu/stellaris_common/include/hw_adc.h @@ -40,6 +40,10 @@ #ifndef __HW_ADC_H__ #define __HW_ADC_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the ADC register offsets. @@ -1349,4 +1353,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_ADC_H__ diff --git a/cpu/stellaris_common/include/hw_gpio.h b/cpu/stellaris_common/include/hw_gpio.h index b6aaa1e6eb..96f96c8a6b 100644 --- a/cpu/stellaris_common/include/hw_gpio.h +++ b/cpu/stellaris_common/include/hw_gpio.h @@ -40,6 +40,10 @@ #ifndef __HW_GPIO_H__ #define __HW_GPIO_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the GPIO register offsets. @@ -189,4 +193,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_GPIO_H__ diff --git a/cpu/stellaris_common/include/hw_hibernate.h b/cpu/stellaris_common/include/hw_hibernate.h index e8d7e2f6f7..b8c36a3942 100644 --- a/cpu/stellaris_common/include/hw_hibernate.h +++ b/cpu/stellaris_common/include/hw_hibernate.h @@ -40,6 +40,10 @@ #ifndef __HW_HIBERNATE_H__ #define __HW_HIBERNATE_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the Hibernation module register addresses. @@ -283,4 +287,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_HIBERNATE_H__ diff --git a/cpu/stellaris_common/include/hw_i2c.h b/cpu/stellaris_common/include/hw_i2c.h index 9a7dc019ce..359bbaee47 100644 --- a/cpu/stellaris_common/include/hw_i2c.h +++ b/cpu/stellaris_common/include/hw_i2c.h @@ -40,6 +40,10 @@ #ifndef __HW_I2C_H__ #define __HW_I2C_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the I2C register offsets. @@ -486,4 +490,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_I2C_H__ diff --git a/cpu/stellaris_common/include/hw_ints.h b/cpu/stellaris_common/include/hw_ints.h index 3d7efe6b97..96200bccd4 100644 --- a/cpu/stellaris_common/include/hw_ints.h +++ b/cpu/stellaris_common/include/hw_ints.h @@ -40,6 +40,10 @@ #ifndef __HW_INTS_H__ #define __HW_INTS_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the fault assignments. @@ -214,4 +218,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_INTS_H__ diff --git a/cpu/stellaris_common/include/hw_memmap.h b/cpu/stellaris_common/include/hw_memmap.h index ca3cbfb9e7..4ad3b93d70 100644 --- a/cpu/stellaris_common/include/hw_memmap.h +++ b/cpu/stellaris_common/include/hw_memmap.h @@ -40,6 +40,10 @@ #ifndef __HW_MEMMAP_H__ #define __HW_MEMMAP_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the base address of the memories and @@ -161,4 +165,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_MEMMAP_H__ diff --git a/cpu/stellaris_common/include/hw_nvic.h b/cpu/stellaris_common/include/hw_nvic.h index 239595faa7..8273103108 100644 --- a/cpu/stellaris_common/include/hw_nvic.h +++ b/cpu/stellaris_common/include/hw_nvic.h @@ -40,6 +40,10 @@ #ifndef __HW_NVIC_H__ #define __HW_NVIC_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the NVIC register addresses. @@ -1714,4 +1718,8 @@ // (RM) mode #define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode +#ifdef __cplusplus +} +#endif + #endif // __HW_NVIC_H__ diff --git a/cpu/stellaris_common/include/hw_pwm.h b/cpu/stellaris_common/include/hw_pwm.h index 323a5a5143..d780480dad 100644 --- a/cpu/stellaris_common/include/hw_pwm.h +++ b/cpu/stellaris_common/include/hw_pwm.h @@ -40,6 +40,10 @@ #ifndef __HW_PWM_H__ #define __HW_PWM_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the PWM register offsets. @@ -2017,4 +2021,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_PWM_H__ diff --git a/cpu/stellaris_common/include/hw_ssi.h b/cpu/stellaris_common/include/hw_ssi.h index 01a2766841..ac3b67a182 100644 --- a/cpu/stellaris_common/include/hw_ssi.h +++ b/cpu/stellaris_common/include/hw_ssi.h @@ -40,6 +40,10 @@ #ifndef __HW_SSI_H__ #define __HW_SSI_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the SSI register offsets. @@ -241,4 +245,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_SSI_H__ diff --git a/cpu/stellaris_common/include/hw_sysctl.h b/cpu/stellaris_common/include/hw_sysctl.h index ccd440b35d..cff565e62f 100644 --- a/cpu/stellaris_common/include/hw_sysctl.h +++ b/cpu/stellaris_common/include/hw_sysctl.h @@ -40,6 +40,10 @@ #ifndef __HW_SYSCTL_H__ #define __HW_SYSCTL_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the System Control register addresses. @@ -3673,4 +3677,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_SYSCTL_H__ diff --git a/cpu/stellaris_common/include/hw_sysexc.h b/cpu/stellaris_common/include/hw_sysexc.h index 9dca92e016..325b5c953f 100644 --- a/cpu/stellaris_common/include/hw_sysexc.h +++ b/cpu/stellaris_common/include/hw_sysexc.h @@ -40,6 +40,10 @@ #ifndef __HW_SYSEXC_H__ #define __HW_SYSEXC_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the System Exception Module register @@ -128,5 +132,8 @@ // Exception Interrupt Clear #define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal // Exception Interrupt Clear +#ifdef __cplusplus +} +#endif #endif // __HW_SYSEXC_H__ diff --git a/cpu/stellaris_common/include/hw_timer.h b/cpu/stellaris_common/include/hw_timer.h index a11a579910..544f338606 100644 --- a/cpu/stellaris_common/include/hw_timer.h +++ b/cpu/stellaris_common/include/hw_timer.h @@ -40,6 +40,10 @@ #ifndef __HW_TIMER_H__ #define __HW_TIMER_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the Timer register offsets. @@ -756,4 +760,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_TIMER_H__ diff --git a/cpu/stellaris_common/include/hw_types.h b/cpu/stellaris_common/include/hw_types.h index 4c88e4e769..c3cf5c35b0 100644 --- a/cpu/stellaris_common/include/hw_types.h +++ b/cpu/stellaris_common/include/hw_types.h @@ -40,6 +40,10 @@ #ifndef __HW_TYPES_H__ #define __HW_TYPES_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // Define a boolean type, and values for true and false. @@ -215,4 +219,8 @@ typedef unsigned char tBoolean; #define DEVICE_IS_REVC2 REVISION_IS_C2 #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_TYPES_H__ diff --git a/cpu/stellaris_common/include/hw_uart.h b/cpu/stellaris_common/include/hw_uart.h index 0d9d752b86..eb985338e1 100644 --- a/cpu/stellaris_common/include/hw_uart.h +++ b/cpu/stellaris_common/include/hw_uart.h @@ -40,6 +40,10 @@ #ifndef __HW_UART_H__ #define __HW_UART_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the UART register offsets. @@ -519,4 +523,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_UART_H__ diff --git a/cpu/stellaris_common/include/hw_watchdog.h b/cpu/stellaris_common/include/hw_watchdog.h index f00e452ecf..a712adaf1f 100644 --- a/cpu/stellaris_common/include/hw_watchdog.h +++ b/cpu/stellaris_common/include/hw_watchdog.h @@ -40,6 +40,10 @@ #ifndef __HW_WATCHDOG_H__ #define __HW_WATCHDOG_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // The following are defines for the Watchdog Timer register offsets. @@ -188,4 +192,8 @@ #endif +#ifdef __cplusplus +} +#endif + #endif // __HW_WATCHDOG_H__ diff --git a/cpu/stellaris_common/include/stellaris_periph/debug.h b/cpu/stellaris_common/include/stellaris_periph/debug.h index 435cc7ee41..19b36a8c9f 100644 --- a/cpu/stellaris_common/include/stellaris_periph/debug.h +++ b/cpu/stellaris_common/include/stellaris_periph/debug.h @@ -40,6 +40,10 @@ #ifndef __DEBUG_H__ #define __DEBUG_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // Prototype for the function that is called when an invalid argument is passed @@ -65,4 +69,8 @@ extern void __error__(char *pcFilename, unsigned long ulLine); #define ASSERT(expr) #endif +#ifdef __cplusplus +} +#endif + #endif // __DEBUG_H__ diff --git a/cpu/stellaris_common/include/stellaris_periph/pin_map.h b/cpu/stellaris_common/include/stellaris_periph/pin_map.h index a657bb3e54..d36a0bbc65 100644 --- a/cpu/stellaris_common/include/stellaris_periph/pin_map.h +++ b/cpu/stellaris_common/include/stellaris_periph/pin_map.h @@ -40,6 +40,10 @@ #ifndef __PIN_MAP_H__ #define __PIN_MAP_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // LM4F120H5QR Port/Pin Mapping Definitions @@ -446,4 +450,8 @@ #define PeripheralEnable(ulName) \ SysCtlPeripheralEnable(ulName##_PERIPH) +#ifdef __cplusplus +} +#endif + #endif // __PIN_MAP_H__ diff --git a/cpu/stellaris_common/include/stellaris_periph/rom.h b/cpu/stellaris_common/include/stellaris_periph/rom.h index 0f579e5f4a..870e2aa24f 100644 --- a/cpu/stellaris_common/include/stellaris_periph/rom.h +++ b/cpu/stellaris_common/include/stellaris_periph/rom.h @@ -40,6 +40,10 @@ #ifndef __ROM_H__ #define __ROM_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // Pointers to the main API tables. @@ -6741,4 +6745,8 @@ #endif #endif +#ifdef __cplusplus +} +#endif + #endif // __ROM_H__ diff --git a/cpu/stellaris_common/include/stellaris_periph/rom_map.h b/cpu/stellaris_common/include/stellaris_periph/rom_map.h index f9091a584e..976da29c6a 100644 --- a/cpu/stellaris_common/include/stellaris_periph/rom_map.h +++ b/cpu/stellaris_common/include/stellaris_periph/rom_map.h @@ -41,6 +41,10 @@ #ifndef __ROM_MAP_H__ #define __ROM_MAP_H__ +#ifdef __cplusplus +extern "C" { +#endif + //***************************************************************************** // // Macros for the ADC API. @@ -5072,4 +5076,8 @@ Crc8CCITT #endif +#ifdef __cplusplus +} +#endif + #endif // __ROM_MAP_H__