1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Modify: C++ compatible header files_3

This commit is contained in:
rakendrathapa 2015-07-22 06:04:08 +05:30 committed by Rakendra Thapa
parent e4c281a0ff
commit de98cdf8be
19 changed files with 151 additions and 0 deletions

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__

View File

@ -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__