Modify: C++ compatible header files_3
This commit is contained in:
parent
e4c281a0ff
commit
de98cdf8be
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_ADC_H__
|
#ifndef __HW_ADC_H__
|
||||||
#define __HW_ADC_H__
|
#define __HW_ADC_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the ADC register offsets.
|
// The following are defines for the ADC register offsets.
|
||||||
@ -1349,4 +1353,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_ADC_H__
|
#endif // __HW_ADC_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_GPIO_H__
|
#ifndef __HW_GPIO_H__
|
||||||
#define __HW_GPIO_H__
|
#define __HW_GPIO_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the GPIO register offsets.
|
// The following are defines for the GPIO register offsets.
|
||||||
@ -189,4 +193,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_GPIO_H__
|
#endif // __HW_GPIO_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_HIBERNATE_H__
|
#ifndef __HW_HIBERNATE_H__
|
||||||
#define __HW_HIBERNATE_H__
|
#define __HW_HIBERNATE_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the Hibernation module register addresses.
|
// The following are defines for the Hibernation module register addresses.
|
||||||
@ -283,4 +287,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_HIBERNATE_H__
|
#endif // __HW_HIBERNATE_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_I2C_H__
|
#ifndef __HW_I2C_H__
|
||||||
#define __HW_I2C_H__
|
#define __HW_I2C_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the I2C register offsets.
|
// The following are defines for the I2C register offsets.
|
||||||
@ -486,4 +490,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_I2C_H__
|
#endif // __HW_I2C_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_INTS_H__
|
#ifndef __HW_INTS_H__
|
||||||
#define __HW_INTS_H__
|
#define __HW_INTS_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the fault assignments.
|
// The following are defines for the fault assignments.
|
||||||
@ -214,4 +218,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_INTS_H__
|
#endif // __HW_INTS_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_MEMMAP_H__
|
#ifndef __HW_MEMMAP_H__
|
||||||
#define __HW_MEMMAP_H__
|
#define __HW_MEMMAP_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the base address of the memories and
|
// The following are defines for the base address of the memories and
|
||||||
@ -161,4 +165,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_MEMMAP_H__
|
#endif // __HW_MEMMAP_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_NVIC_H__
|
#ifndef __HW_NVIC_H__
|
||||||
#define __HW_NVIC_H__
|
#define __HW_NVIC_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the NVIC register addresses.
|
// The following are defines for the NVIC register addresses.
|
||||||
@ -1714,4 +1718,8 @@
|
|||||||
// (RM) mode
|
// (RM) mode
|
||||||
#define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
|
#define NVIC_FPDSC_RMODE_RZ 0x00C00000 // Round towards Zero (RZ) mode
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_NVIC_H__
|
#endif // __HW_NVIC_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_PWM_H__
|
#ifndef __HW_PWM_H__
|
||||||
#define __HW_PWM_H__
|
#define __HW_PWM_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the PWM register offsets.
|
// The following are defines for the PWM register offsets.
|
||||||
@ -2017,4 +2021,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_PWM_H__
|
#endif // __HW_PWM_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_SSI_H__
|
#ifndef __HW_SSI_H__
|
||||||
#define __HW_SSI_H__
|
#define __HW_SSI_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the SSI register offsets.
|
// The following are defines for the SSI register offsets.
|
||||||
@ -241,4 +245,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_SSI_H__
|
#endif // __HW_SSI_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_SYSCTL_H__
|
#ifndef __HW_SYSCTL_H__
|
||||||
#define __HW_SYSCTL_H__
|
#define __HW_SYSCTL_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the System Control register addresses.
|
// The following are defines for the System Control register addresses.
|
||||||
@ -3673,4 +3677,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_SYSCTL_H__
|
#endif // __HW_SYSCTL_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_SYSEXC_H__
|
#ifndef __HW_SYSEXC_H__
|
||||||
#define __HW_SYSEXC_H__
|
#define __HW_SYSEXC_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the System Exception Module register
|
// The following are defines for the System Exception Module register
|
||||||
@ -128,5 +132,8 @@
|
|||||||
// Exception Interrupt Clear
|
// Exception Interrupt Clear
|
||||||
#define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
|
#define SYSEXC_IC_FPIDCIC 0x00000001 // Floating-Point Input Denormal
|
||||||
// Exception Interrupt Clear
|
// Exception Interrupt Clear
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_SYSEXC_H__
|
#endif // __HW_SYSEXC_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_TIMER_H__
|
#ifndef __HW_TIMER_H__
|
||||||
#define __HW_TIMER_H__
|
#define __HW_TIMER_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the Timer register offsets.
|
// The following are defines for the Timer register offsets.
|
||||||
@ -756,4 +760,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_TIMER_H__
|
#endif // __HW_TIMER_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_TYPES_H__
|
#ifndef __HW_TYPES_H__
|
||||||
#define __HW_TYPES_H__
|
#define __HW_TYPES_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// Define a boolean type, and values for true and false.
|
// 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
|
#define DEVICE_IS_REVC2 REVISION_IS_C2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_TYPES_H__
|
#endif // __HW_TYPES_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_UART_H__
|
#ifndef __HW_UART_H__
|
||||||
#define __HW_UART_H__
|
#define __HW_UART_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the UART register offsets.
|
// The following are defines for the UART register offsets.
|
||||||
@ -519,4 +523,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_UART_H__
|
#endif // __HW_UART_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __HW_WATCHDOG_H__
|
#ifndef __HW_WATCHDOG_H__
|
||||||
#define __HW_WATCHDOG_H__
|
#define __HW_WATCHDOG_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// The following are defines for the Watchdog Timer register offsets.
|
// The following are defines for the Watchdog Timer register offsets.
|
||||||
@ -188,4 +192,8 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __HW_WATCHDOG_H__
|
#endif // __HW_WATCHDOG_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __DEBUG_H__
|
#ifndef __DEBUG_H__
|
||||||
#define __DEBUG_H__
|
#define __DEBUG_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// Prototype for the function that is called when an invalid argument is passed
|
// 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)
|
#define ASSERT(expr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __DEBUG_H__
|
#endif // __DEBUG_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __PIN_MAP_H__
|
#ifndef __PIN_MAP_H__
|
||||||
#define __PIN_MAP_H__
|
#define __PIN_MAP_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// LM4F120H5QR Port/Pin Mapping Definitions
|
// LM4F120H5QR Port/Pin Mapping Definitions
|
||||||
@ -446,4 +450,8 @@
|
|||||||
#define PeripheralEnable(ulName) \
|
#define PeripheralEnable(ulName) \
|
||||||
SysCtlPeripheralEnable(ulName##_PERIPH)
|
SysCtlPeripheralEnable(ulName##_PERIPH)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __PIN_MAP_H__
|
#endif // __PIN_MAP_H__
|
||||||
|
|||||||
@ -40,6 +40,10 @@
|
|||||||
#ifndef __ROM_H__
|
#ifndef __ROM_H__
|
||||||
#define __ROM_H__
|
#define __ROM_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// Pointers to the main API tables.
|
// Pointers to the main API tables.
|
||||||
@ -6741,4 +6745,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __ROM_H__
|
#endif // __ROM_H__
|
||||||
|
|||||||
@ -41,6 +41,10 @@
|
|||||||
#ifndef __ROM_MAP_H__
|
#ifndef __ROM_MAP_H__
|
||||||
#define __ROM_MAP_H__
|
#define __ROM_MAP_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//*****************************************************************************
|
//*****************************************************************************
|
||||||
//
|
//
|
||||||
// Macros for the ADC API.
|
// Macros for the ADC API.
|
||||||
@ -5072,4 +5076,8 @@
|
|||||||
Crc8CCITT
|
Crc8CCITT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __ROM_MAP_H__
|
#endif // __ROM_MAP_H__
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user