1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #1803 from BytesGalore/extern_C_in_headers_cpus

cpu: added `extern "C"` to headers
This commit is contained in:
DangNhat Pham-Huu 2014-11-25 08:49:57 +07:00
commit 785fc1f5a8
224 changed files with 1708 additions and 25 deletions

View File

@ -9,7 +9,7 @@
#define __ARM_COMMON_H
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/**

View File

@ -27,7 +27,7 @@
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/**

View File

@ -20,7 +20,7 @@
#define HWTIMER_CPU_H_
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#define HWTIMER_MAXTIMERS 4

View File

@ -12,7 +12,7 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* IAP-Commands */

View File

@ -20,6 +20,9 @@
#define __CPU_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Kernel configuration
@ -48,5 +51,9 @@
#endif
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __CPU_CONF_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __HWTIMER_CPU_H
#define __HWTIMER_CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Hardware timer configuration
* @{
@ -28,5 +32,9 @@
#define HWTIMER_MAXTICKS (0xFFFF) /**< 16-bit timer */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __HWTIMER_CPU_H */
/** @} */

View File

@ -101,13 +101,13 @@
#ifndef TIME_H
#define TIME_H
#ifdef __cplusplus
extern "C" {
#endif
#include <inttypes.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
/** \ingroup avr_time */
/* @{ */

View File

@ -33,6 +33,11 @@
* TODO: remove once core was adjusted
*/
#include "irq.h"
#ifdef __cplusplus
extern "C" {
#endif
#define eINT enableIRQ
#define dINT disableIRQ
@ -41,6 +46,9 @@
*/
void cpu_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __ATMEGA_COMMON_H */
/** @} */

View File

@ -9,7 +9,15 @@
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};
#ifdef __cplusplus
}
#endif

View File

@ -12,7 +12,15 @@
#ifndef AVR_TYPES_H
#define AVR_TYPES_H
#ifdef __cplusplus
extern "C" {
#endif
typedef int16_t suseconds_t;
typedef signed int ssize_t;
#ifdef __cplusplus
}
#endif
#endif /* ifndef AVR_TYPES_H */

View File

@ -36,9 +36,17 @@
#ifndef CC430_ADC_H
#define CC430_ADC_H
#ifdef __cplusplus
extern "C" {
#endif
extern uint16_t adc12_single_conversion(uint16_t ref, uint16_t sht, uint16_t channel);
extern uint16_t adc12_result;
extern uint8_t adc12_data_ready;
#ifdef __cplusplus
}
#endif
#endif

View File

@ -11,6 +11,10 @@
#include "rtc.h"
#include "time.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @ingroup cc430
*/
@ -52,5 +56,8 @@ void rtc_set_alarm(struct tm *localti, rtc_alarm_mask_t mask);
*/
void rtc_remove_alarm(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -123,10 +123,18 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#include <stdint.h> /* standard types definitions */
#include <core_cmInstr.h> /* Core Instruction Access */
#include <core_cmFunc.h> /* Core Function Access */
#ifdef __cplusplus
extern "C" {
#endif
#endif /* __CORE_CM0_H_GENERIC */
#ifndef __CMSIS_GENERIC

View File

@ -107,10 +107,18 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#include <stdint.h> /* standard types definitions */
#include <core_cmInstr.h> /* Core Instruction Access */
#include <core_cmFunc.h> /* Core Function Access */
#ifdef __cplusplus
extern "C" {
#endif
#endif /* __CORE_CM0PLUS_H_GENERIC */
#ifndef __CMSIS_GENERIC

View File

@ -23,6 +23,9 @@
#ifndef __CORE_CMFUNC_H
#define __CORE_CMFUNC_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################### Core Function Access ########################### */
/** \ingroup CMSIS_Core_FunctionInterface
@ -604,5 +607,8 @@ __attribute__( ( always_inline ) ) static __INLINE void __set_FPSCR(uint32_t fps
/*@} end of CMSIS_Core_RegAccFunctions */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMFUNC_H */

View File

@ -23,6 +23,9 @@
#ifndef __CORE_CMINSTR_H
#define __CORE_CMINSTR_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################## Core Instruction Access ######################### */
/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
@ -581,4 +584,8 @@ __attribute__( ( always_inline ) ) static __INLINE uint8_t __CLZ(uint32_t value)
/*@}*/ /* end of group CMSIS_Core_InstructionInterface */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMINSTR_H */

View File

@ -33,6 +33,11 @@
* TODO: remove once core was adjusted
*/
#include "irq.h"
#ifdef __cplusplus
extern "C" {
#endif
#define eINT enableIRQ
#define dINT disableIRQ
@ -41,5 +46,9 @@
*/
void cpu_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __CPU_H */
/** @} */

View File

@ -117,10 +117,18 @@
/* add preprocessor checks */
#endif
#ifdef __cplusplus
}
#endif
#include <stdint.h> /*!< standard types definitions */
#include "core_cmInstr.h" /*!< Core Instruction Access */
#include "core_cmFunc.h" /*!< Core Function Access */
#ifdef __cplusplus
extern "C" {
#endif
#endif /* __CORE_CM3_H_GENERIC */
#ifndef __CMSIS_GENERIC

View File

@ -23,6 +23,9 @@
#ifndef __CORE_CMFUNC_H
#define __CORE_CMFUNC_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################### Core Function Access ########################### */
/** \ingroup CMSIS_Core_FunctionInterface
@ -604,5 +607,8 @@ __attribute__( ( always_inline ) ) static __INLINE void __set_FPSCR(uint32_t fps
/*@} end of CMSIS_Core_RegAccFunctions */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMFUNC_H */

View File

@ -23,6 +23,9 @@
#ifndef __CORE_CMINSTR_H
#define __CORE_CMINSTR_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################## Core Instruction Access ######################### */
/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
@ -581,4 +584,8 @@ __attribute__( ( always_inline ) ) static __INLINE uint8_t __CLZ(uint32_t value)
/*@}*/ /* end of group CMSIS_Core_InstructionInterface */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMINSTR_H */

View File

@ -30,6 +30,11 @@
* TODO: remove once core was adjusted
*/
#include "irq.h"
#ifdef __cplusplus
extern "C" {
#endif
#define eINT enableIRQ
#define dINT disableIRQ
@ -38,6 +43,9 @@
*/
void cpu_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __CORTEXM_COMMON_H */
/** @} */

View File

@ -165,11 +165,19 @@
#endif
#endif
#ifdef __cplusplus
}
#endif
#include <stdint.h> /* standard types definitions */
#include <core_cmInstr.h> /* Core Instruction Access */
#include <core_cmFunc.h> /* Core Function Access */
#include <core_cm4_simd.h> /* Compiler specific SIMD Intrinsics */
#ifdef __cplusplus
extern "C" {
#endif
#endif /* __CORE_CM4_H_GENERIC */
#ifndef __CMSIS_GENERIC

View File

@ -23,6 +23,9 @@
#ifndef __CORE_CMFUNC_H
#define __CORE_CMFUNC_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################### Core Function Access ########################### */
/** \ingroup CMSIS_Core_FunctionInterface
@ -604,5 +607,8 @@ __attribute__( ( always_inline ) ) static __INLINE void __set_FPSCR(uint32_t fps
/*@} end of CMSIS_Core_RegAccFunctions */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMFUNC_H */

View File

@ -23,6 +23,9 @@
#ifndef __CORE_CMINSTR_H
#define __CORE_CMINSTR_H
#ifdef __cplusplus
extern "C" {
#endif
/* ########################## Core Instruction Access ######################### */
/** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
@ -581,4 +584,8 @@ __attribute__( ( always_inline ) ) static __INLINE uint8_t __CLZ(uint32_t value)
/*@}*/ /* end of group CMSIS_Core_InstructionInterface */
#ifdef __cplusplus
}
#endif
#endif /* __CORE_CMINSTR_H */

View File

@ -32,6 +32,11 @@
* TODO: remove once core was adjusted
*/
#include "irq.h"
#ifdef __cplusplus
extern "C" {
#endif
#define eINT enableIRQ
#define dINT disableIRQ
@ -40,5 +45,9 @@
*/
void cpu_init(void);
#ifdef __cplusplus
}
#endif
#endif /* __CORTEXM_COMMON_H */
/** @} */

View File

@ -98,9 +98,15 @@ typedef enum IRQn
#define __NVIC_PRIO_BITS 5 /*!< Number of Bits used for Priority Levels */
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
#ifdef __cplusplus
}
#endif
#include "core_cm3.h" /* Cortex-M3 processor and core peripherals */
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************************/
/* Device Specific Peripheral registers structures */

View File

@ -10,6 +10,10 @@
#ifndef CPUCONF_H_
#define CPUCONF_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @ingroup conf
* @ingroup lpc2387
@ -66,6 +70,9 @@
#define UART0_BUFSIZE (128)
#endif
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* CPUCONF_H_ */

View File

@ -20,10 +20,18 @@
#include "lpc2387.h"
#include "arm_cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
extern uintptr_t __stack_start; ///< end of user stack memory space
void lpc2387_pclk_scale(uint32_t source, uint32_t target, uint32_t *pclksel, uint32_t *prescale);
bool install_irq(int IntNumber, void (*HandlerAddr)(void), int Priority);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* __CPU_H */

View File

@ -34,6 +34,10 @@
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define I2C_BUFSIZE 0x23
#define MAX_TIMEOUT 0x00FFFFFF
@ -326,4 +330,8 @@ void i2c_enable_pull_up_resistor(uint8_t i2c_interface);
*/
void i2c_disable_pull_up_resistor(uint8_t i2c_interface);
#ifdef __cplusplus
}
#endif
#endif /* end __I2C_H */

View File

@ -29,6 +29,10 @@
#include <stdint.h>
#include "adc_legacy.h"
#ifdef __cplusplus
extern "C" {
#endif
#define ADC_NUM (6)
#define ADC_OFFSET (0x10)
#define ADC_INDEX (4)
@ -42,5 +46,9 @@
void adc_init_1(void);
void adc_init_2(void);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* LPC2387ADC_H_ */

View File

@ -35,6 +35,10 @@
#include "rtc.h"
#include "lpc2387.h"
#ifdef __cplusplus
extern "C" {
#endif
/* ------------------------------------------------------------------------- */
/**
* @name LPC2387 RTC Compile-Time Configuration
@ -104,5 +108,9 @@ void rtc_set_alarm(struct tm *localt, enum rtc_alarm_mask mask);
*/
enum rtc_alarm_mask _rtc_get_alarm(struct tm *localt);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* end __RTC_H */

View File

@ -14,6 +14,10 @@
#include "lpc23xx.h"
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
#define F_CCO 288000000
#define CL_CPU_DIV 4 ///< CPU clock divider
#define F_CPU (F_CCO / CL_CPU_DIV) ///< CPU target speed in Hz
@ -208,4 +212,8 @@
/** @} */
/** @} */
#ifdef __cplusplus
}
#endif
#endif // __LPC2387_H

View File

@ -15,6 +15,10 @@
#ifndef __LPC23xx_H
#define __LPC23xx_H
#ifdef __cplusplus
extern "C" {
#endif
/* Vectored Interrupt Controller (VIC) */
#define VIC_BASE_ADDR 0xFFFFF000
#define VICIRQStatus (*(volatile unsigned long *)(VIC_BASE_ADDR + 0x000))
@ -1126,5 +1130,8 @@ with the spec. update in USB Device Section. */
#define MAC_POWERDOWN (*(volatile unsigned long *)(MAC_BASE_ADDR + 0xFF4)) /* Power-down reg */
#define MAC_MODULEID (*(volatile unsigned long *)(MAC_BASE_ADDR + 0xFFC)) /* Module ID reg (RO) */
#ifdef __cplusplus
}
#endif
#endif // __LPC23xx_H

View File

@ -12,6 +12,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define ASM_BASE_ADDRESS 0x80008000
struct ASM_struct {
@ -100,4 +104,8 @@ void asm_ctr_cbc_mac_init(asm_keys_t *keys);
void asm_ctr_cbc_mac_update(asm_data_t *data, asm_ctr_t *ctr);
void asm_ctr_cbc_mac_finish(asm_data_t *data);
#ifdef __cplusplus
}
#endif
#endif /* ASM_H */

View File

@ -10,6 +10,10 @@
#ifndef CPUCONF_H_
#define CPUCONF_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @ingroup conf
* @ingroup mc1322x
@ -63,5 +67,9 @@
#define UART0_BUFSIZE (64)
#endif
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* CPUCONF_H_ */

View File

@ -26,8 +26,16 @@
#include "arm_cpu.h"
#include "mc1322x.h"
#ifdef __cplusplus
extern "C" {
#endif
extern uintptr_t __stack_start; ///< end of user stack memory space
bool install_irq(int int_number, void *handler_addr, int priority);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* CPU_H */

View File

@ -13,6 +13,10 @@
// TODO: why do we need to include this for macro expansion?
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Structure-based GPIO access
Example usage:
@ -155,4 +159,8 @@ enum { _REP(0,0) };
static volatile struct GPIO_struct * const GPIO = (void *) (0x80000000);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -12,6 +12,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/*-----------------------------------------------------------------*/
/* System Management */
#define SW_RST_VAL (0x87651234)
@ -303,8 +307,6 @@ static volatile struct TMR_struct * const TMR3 = (void *) (TMR3_BASE);
/* Interrupts */
#define INTBASE (0x80020000)
#include <stdint.h>
/* Structure-based ITC access */
#define __INTERRUPT_union(x) \
union { \
@ -442,4 +444,8 @@ extern void adc_isr(void) __attribute__((weak));
extern void spi_isr(void) __attribute__((weak));
#ifdef __cplusplus
}
#endif
#endif /* MC1322X_H */

View File

@ -15,6 +15,10 @@
#include "maca_packet.h"
#ifdef __cplusplus
extern "C" {
#endif
/*********************************************************/
/* function definitions */
/*********************************************************/
@ -530,5 +534,8 @@ static volatile struct MACA_struct * const MACA = (void *) (MACA_BASE_ADDRESS +
#define MACA_TMRDIS_SFTOFF_ABORT 1
#ifdef __cplusplus
}
#endif
#endif // MACA_H_

View File

@ -12,6 +12,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* does not include 2 byte FCS checksum */
#ifndef MACA_MAX_PAYLOAD_SIZE
#define MACA_MAX_PAYLOAD_SIZE 125
@ -40,4 +44,8 @@ struct packet {
};
typedef struct packet maca_packet_t;
#ifdef __cplusplus
}
#endif
#endif

View File

@ -9,6 +9,10 @@
#ifndef CPUCONF_H_
#define CPUCONF_H_
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Kernel configuration
* @{
@ -36,4 +40,8 @@
#endif
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* CPUCONF_H_ */

View File

@ -31,6 +31,10 @@
#include "msp430_types.h"
#include "cpu-conf.h"
#ifdef __cplusplus
extern "C" {
#endif
#define WORDSIZE 16
extern volatile int __inISR;
@ -135,5 +139,9 @@ int inISR(void);
void msp430_cpu_init(void);
#ifdef __cplusplus
}
#endif
/** @} */
#endif // _CPU_H

View File

@ -13,6 +13,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __MSP430_HAS_TA2__
#define HWTIMER_MAXTIMERS 2
#endif
@ -32,4 +36,8 @@
#define HWTIMER_SPEED (F_RC_OSCILLATOR)
#define HWTIMER_MAXTICKS (0xFFFFFFFF)
#ifdef __cplusplus
}
#endif
#endif // __HWTIMER_CPU_H

View File

@ -15,6 +15,10 @@
/** defining signed type for size_t */
#include "kernel_types.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef EINVAL
/**
* @brief defines EINVAL if MSP430 toolchain is too old to provide it itself
@ -47,4 +51,8 @@ struct timeval {
/* TODO: remove once msp430 libc supports clockid_t */
typedef int clockid_t;
#ifdef __cplusplus
}
#endif
#endif /* MSP430_TYPES_H */

View File

@ -11,4 +11,12 @@
#include "msp430_types.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* TIME_H */

View File

@ -9,6 +9,10 @@
#ifndef MSPGCC_TIME_H
#define MSPGCC_TIME_H
#ifdef __cplusplus
extern "C" {
#endif
struct tm {
int tm_sec; /* Seconds after the minute [0, 60] */
int tm_min; /* Minutes after the hour [0, 59] */
@ -21,4 +25,8 @@ struct tm {
int tm_isdst; /* Daylight saving time is in effect */
};
#ifdef __cplusplus
}
#endif
#endif

View File

@ -10,6 +10,10 @@
#ifndef __CLANG_COMPAT_H
#ifdef __cplusplus
extern "C" {
#endif
#undef HTONS
#undef HTONL
#undef HTONLL
@ -17,4 +21,8 @@
#undef NTOHL
#undef NTOHLL
#ifdef __cplusplus
}
#endif
#endif

View File

@ -16,6 +16,10 @@
#ifndef CPUCONF_H_
#define CPUCONF_H_
#ifdef __cplusplus
extern "C" {
#endif
/* TODO: tighten stack sizes */
#ifdef __MACH__ /* OSX */
#define KERNEL_CONF_STACKSIZE_DEFAULT (163840)
@ -64,4 +68,8 @@
#define CPUID_ID_LEN (4)
#endif
#ifdef __cplusplus
}
#endif
#endif /* CPUCONF_H_ */

View File

@ -20,9 +20,17 @@
#ifndef _CPU_H
#define _CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/* TODO: remove once these have been removed from RIOT: */
void dINT(void);
void eINT(void);
#ifdef __cplusplus
}
#endif
/** @} */
#endif //_CPU_H

View File

@ -17,8 +17,16 @@
#ifndef HWTIMER_CPU_H_
#define HWTIMER_CPU_H_
#ifdef __cplusplus
extern "C" {
#endif
#define HWTIMER_MAXTIMERS 4
#define HWTIMER_SPEED 1000000
#define HWTIMER_MAXTICKS (0xFFFFFFFF)
#ifdef __cplusplus
}
#endif
#endif /* HWTIMER_CPU_H_ */

View File

@ -47,6 +47,9 @@
#include "kernel_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Prototype for native's internal callbacks
@ -146,6 +149,10 @@ int unregister_interrupt(int sig);
//#include <sys/param.h>
#ifdef __cplusplus
}
#endif
#include "kernel_internal.h"
#include "sched.h"

View File

@ -42,6 +42,11 @@
#ifndef NATIVE_MAX_DATA_LENGTH
#include "tap.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef MODULE_SIXLOWPAN
#define NATIVE_MAX_DATA_LENGTH (127)
#else
@ -155,5 +160,10 @@ uint16_t nativenet_get_pan(void);
* Enable transceiver rx mode
*/
void nativenet_switch_to_rx(void);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* NATIVENET_H */

View File

@ -19,6 +19,10 @@
#include "tap.h"
#ifdef __cplusplus
extern "C" {
#endif
#define NNEV_PWRDWN 0x01
#define NNEV_PWRUP 0x02
#define NNEV_MONITOR 0x03
@ -97,4 +101,9 @@ extern _nativenet_netdev_more_t _nativenet_default_dev_more;
void _nativenet_handle_packet(radio_packet_t *packet);
int8_t send_buf(radio_packet_t *packet);
#ifdef __cplusplus
}
#endif
#endif /* NATIVENET_INTERNAL_H */

View File

@ -21,6 +21,10 @@
#include "board.h"
#include "radio/types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* create and/or open tap device "name"
*
@ -55,4 +59,8 @@ union eth_frame {
unsigned char buffer[ETHER_MAX_LEN];
} __attribute__((packed));
#ifdef __cplusplus
}
#endif
#endif /* _TAP_H */

View File

@ -22,6 +22,10 @@
#include "nrf51.h"
#include "nrf51_bitfields.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Kernel configuration
* @{
@ -51,5 +55,9 @@
*/
#define CPUID_ID_LEN (8)
#ifdef __cplusplus
}
#endif
#endif /* __CPU_CONF_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __HWTIMER_CPU_H
#define __HWTIMER_CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Hardware timer configuration
* @{
@ -29,6 +33,9 @@
#define HWTIMER_MAXTICKS (0xFFFFFF) /**< 24-bit timer -> see PAN note */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __HWTIMER_CPU_H */
/** @} */

View File

@ -116,8 +116,15 @@ typedef enum {
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
/** @} */ /* End of group Configuration_of_CMSIS */
#ifdef __cplusplus
}
#endif
#include <core_cm0.h> /*!< Cortex-M0 processor and core peripherals */
#ifdef __cplusplus
extern "C" {
#endif
/* ================================================================================ */
/* ================ Device Specific Peripheral Section ================ */

View File

@ -34,6 +34,10 @@
#include <core_cm0.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Peripheral: AAR */
/* Description: Accelerated Address Resolver. */
@ -6889,6 +6893,9 @@
#define WDT_POWER_POWER_Disabled (0UL) /*!< Module power disabled. */
#define WDT_POWER_POWER_Enabled (1UL) /*!< Module power enabled. */
#ifdef __cplusplus
}
#endif
/*lint --flb "Leave library region" */
#endif

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_ADC_COMPONENT_
#define _SAM3XA_ADC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Analog-to-digital Converter */
/* ============================================================================= */
@ -501,5 +505,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_ADC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_CAN_COMPONENT_
#define _SAM3XA_CAN_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Controller Area Network */
/* ============================================================================= */
@ -295,5 +299,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_CAN_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_CHIPID_COMPONENT_
#define _SAM3XA_CHIPID_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Chip Identifier */
/* ============================================================================= */
@ -156,5 +160,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_CHIPID_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_DACC_COMPONENT_
#define _SAM3XA_DACC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Digital-to-Analog Converter Controller */
/* ============================================================================= */
@ -207,5 +211,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_DACC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_DMAC_COMPONENT_
#define _SAM3XA_DMAC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR DMA Controller */
/* ============================================================================= */
@ -364,5 +368,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_DMAC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_EFC_COMPONENT_
#define _SAM3XA_EFC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Embedded Flash Controller */
/* ============================================================================= */
@ -73,5 +77,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_EFC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_EMAC_COMPONENT_
#define _SAM3XA_EMAC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Ethernet MAC 10/100 */
/* ============================================================================= */
@ -332,5 +336,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_EMAC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_GPBR_COMPONENT_
#define _SAM3XA_GPBR_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR General Purpose Backup Register */
/* ============================================================================= */
@ -50,5 +54,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_GPBR_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_HSMCI_COMPONENT_
#define _SAM3XA_HSMCI_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR High Speed MultiMedia Card Interface */
/* ============================================================================= */
@ -338,5 +342,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_HSMCI_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_MATRIX_COMPONENT_
#define _SAM3XA_MATRIX_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR AHB Bus Matrix */
/* ============================================================================= */
@ -282,5 +286,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_MATRIX_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_PDC_COMPONENT_
#define _SAM3XA_PDC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Peripheral DMA Controller */
/* ============================================================================= */
@ -95,5 +99,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_PDC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_PIO_COMPONENT_
#define _SAM3XA_PIO_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Parallel Input/Output Controller */
/* ============================================================================= */
@ -1432,5 +1436,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_PIO_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_PMC_COMPONENT_
#define _SAM3XA_PMC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Power Management Controller */
/* ============================================================================= */
@ -413,5 +417,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_PMC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_PWM_COMPONENT_
#define _SAM3XA_PWM_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Pulse Width Modulation Controller */
/* ============================================================================= */
@ -664,5 +668,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_PWM_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_RSTC_COMPONENT_
#define _SAM3XA_RSTC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Reset Controller */
/* ============================================================================= */
@ -70,5 +74,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_RSTC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_RTC_COMPONENT_
#define _SAM3XA_RTC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Real-time Clock */
/* ============================================================================= */
@ -165,5 +169,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_RTC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_RTT_COMPONENT_
#define _SAM3XA_RTT_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Real-time Timer */
/* ============================================================================= */
@ -66,5 +70,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_RTT_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_SDRAMC_COMPONENT_
#define _SAM3XA_SDRAMC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR SDRAM Controller */
/* ============================================================================= */
@ -185,5 +189,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_SDRAMC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_SMC_COMPONENT_
#define _SAM3XA_SMC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Static Memory Controller */
/* ============================================================================= */
@ -481,5 +485,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_SMC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_SPI_COMPONENT_
#define _SAM3XA_SPI_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Serial Peripheral Interface */
/* ============================================================================= */
@ -156,5 +160,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_SPI_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_SSC_COMPONENT_
#define _SAM3XA_SSC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Synchronous Serial Controller */
/* ============================================================================= */
@ -267,5 +271,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_SSC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_SUPC_COMPONENT_
#define _SAM3XA_SUPC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Supply Controller */
/* ============================================================================= */
@ -309,5 +313,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_SUPC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_TC_COMPONENT_
#define _SAM3XA_TC_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Timer Counter */
/* ============================================================================= */
@ -300,5 +304,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_TC_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_TRNG_COMPONENT_
#define _SAM3XA_TRNG_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR True Random Number Generator */
/* ============================================================================= */
@ -69,5 +73,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_TRNG_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_TWI_COMPONENT_
#define _SAM3XA_TWI_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Two-wire Interface */
/* ============================================================================= */
@ -214,5 +218,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_TWI_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_UART_COMPONENT_
#define _SAM3XA_UART_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Universal Asynchronous Receiver Transmitter */
/* ============================================================================= */
@ -182,5 +186,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_UART_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_UOTGHS_COMPONENT_
#define _SAM3XA_UOTGHS_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR USB On-The-Go Interface */
/* ============================================================================= */
@ -935,5 +939,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_UOTGHS_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_USART_COMPONENT_
#define _SAM3XA_USART_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Universal Synchronous Asynchronous Receiver Transmitter */
/* ============================================================================= */
@ -393,5 +397,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_USART_COMPONENT_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_WDT_COMPONENT_
#define _SAM3XA_WDT_COMPONENT_
#ifdef __cplusplus
extern "C" {
#endif
/* ============================================================================= */
/** SOFTWARE API DEFINITION FOR Watchdog Timer */
/* ============================================================================= */
@ -69,5 +73,8 @@ typedef struct {
/*@}*/
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_WDT_COMPONENT_ */

View File

@ -20,6 +20,9 @@
#include "sam3x8e.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Kernel configuration
@ -47,6 +50,9 @@
#endif
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __CPU_CONF_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __HWTIMER_CPU_H
#define __HWTIMER_CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Hardware timer configuration
* @{
@ -29,5 +33,9 @@
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __HWTIMER_CPU_H */
/** @} */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_ADC_INSTANCE_
#define _SAM3XA_ADC_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for ADC peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_ADC_CR (0x400C0000U) /**< \brief (ADC) Control Register */
@ -89,4 +93,8 @@
#define REG_ADC_PTSR (*(RoReg*)0x400C0124U) /**< \brief (ADC) Transfer Status Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_ADC_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_CAN0_INSTANCE_
#define _SAM3XA_CAN0_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for CAN0 peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_CAN0_MR (0x400B4000U) /**< \brief (CAN0) Mode Register */
@ -189,4 +193,8 @@
#define REG_CAN0_MCR7 (*(WoReg*)0x400B42FCU) /**< \brief (CAN0) Mailbox Control Register (MB = 7) */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_CAN0_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_CAN1_INSTANCE_
#define _SAM3XA_CAN1_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for CAN1 peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_CAN1_MR (0x400B8000U) /**< \brief (CAN1) Mode Register */
@ -189,4 +193,8 @@
#define REG_CAN1_MCR7 (*(WoReg*)0x400B82FCU) /**< \brief (CAN1) Mailbox Control Register (MB = 7) */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_CAN1_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_CHIPID_INSTANCE_
#define _SAM3XA_CHIPID_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for CHIPID peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_CHIPID_CIDR (0x400E0940U) /**< \brief (CHIPID) Chip ID Register */
@ -39,4 +43,8 @@
#define REG_CHIPID_EXID (*(RoReg*)0x400E0944U) /**< \brief (CHIPID) Chip ID Extension Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_CHIPID_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_DACC_INSTANCE_
#define _SAM3XA_DACC_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for DACC peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_DACC_CR (0x400C8000U) /**< \brief (DACC) Control Register */
@ -73,4 +77,8 @@
#define REG_DACC_PTSR (*(RoReg*)0x400C8124U) /**< \brief (DACC) Transfer Status Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_DACC_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_DMAC_INSTANCE_
#define _SAM3XA_DMAC_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for DMAC peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_DMAC_GCFG (0x400C4000U) /**< \brief (DMAC) DMAC Global Configuration Register */
@ -135,4 +139,8 @@
#define REG_DMAC_WPSR (*(RoReg*)0x400C41E8U) /**< \brief (DMAC) DMAC Write Protect Status Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_DMAC_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_EFC0_INSTANCE_
#define _SAM3XA_EFC0_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for EFC0 peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_EFC0_FMR (0x400E0A00U) /**< \brief (EFC0) EEFC Flash Mode Register */
@ -43,4 +47,8 @@
#define REG_EFC0_FRR (*(RoReg*)0x400E0A0CU) /**< \brief (EFC0) EEFC Flash Result Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_EFC0_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_EFC1_INSTANCE_
#define _SAM3XA_EFC1_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for EFC1 peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_EFC1_FMR (0x400E0C00U) /**< \brief (EFC1) EEFC Flash Mode Register */
@ -43,4 +47,8 @@
#define REG_EFC1_FRR (*(RoReg*)0x400E0C0CU) /**< \brief (EFC1) EEFC Flash Result Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_EFC1_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_EMAC_INSTANCE_
#define _SAM3XA_EMAC_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for EMAC peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_EMAC_NCR (0x400B0000U) /**< \brief (EMAC) Network Control Register */
@ -125,4 +129,8 @@
#define REG_EMAC_USRIO (*(RwReg*)0x400B00C0U) /**< \brief (EMAC) User Input/Output Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_EMAC_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_GPBR_INSTANCE_
#define _SAM3XA_GPBR_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for GPBR peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_GPBR_GPBR (0x400E1A90U) /**< \brief (GPBR) General Purpose Backup Register */
@ -37,4 +41,8 @@
#define REG_GPBR_GPBR (*(RwReg*)0x400E1A90U) /**< \brief (GPBR) General Purpose Backup Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_GPBR_INSTANCE_ */

View File

@ -30,6 +30,10 @@
#ifndef _SAM3XA_HSMCI_INSTANCE_
#define _SAM3XA_HSMCI_INSTANCE_
#ifdef __cplusplus
extern "C" {
#endif
/* ========== Register definition for HSMCI peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_HSMCI_CR (0x40000000U) /**< \brief (HSMCI) Control Register */
@ -75,4 +79,8 @@
#define REG_HSMCI_FIFO (*(RwReg*)0x40000200U) /**< \brief (HSMCI) FIFO Memory Aperture0 */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#ifdef __cplusplus
}
#endif
#endif /* _SAM3XA_HSMCI_INSTANCE_ */

Some files were not shown because too many files have changed in this diff Show More