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

Merge pull request #1806 from BytesGalore/extern_C_in_headers_boards

boards: add `extern "C"` to header files
This commit is contained in:
Ludwig Ortmann 2014-10-31 04:25:15 -07:00
commit 2117737302
61 changed files with 479 additions and 1 deletions

View File

@ -23,6 +23,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
*/
@ -71,5 +75,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -20,6 +20,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer peripheral configuration
* @{
@ -222,5 +226,9 @@
#define GPIO_B14_MAP 15
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -23,6 +23,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
*/
@ -75,6 +79,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,9 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer peripheral configuration
@ -279,4 +282,8 @@
#define GPIO_14_EN 0
#define GPIO_15_EN 0
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */

View File

@ -27,6 +27,10 @@
#include "bitarithm.h"
#include "msba2_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#define LED_RED_PIN (BIT25)
#define LED_GREEN_PIN (BIT26)
@ -49,5 +53,9 @@ void init_clks1(void);
typedef uint8_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* BOARDCONF_H_ */

View File

@ -21,6 +21,10 @@
#include "lpc2387.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief PWM device and pinout configuration
*/
@ -41,6 +45,9 @@
#define PWM_0_CH2_PIN (4)
#define PWM_0_FUNC (1)
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -26,6 +26,10 @@
#include <stdint.h>
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SMB380_DEBUG_MESSAGE "SMB380 Driver Error: "
#define MSG_TYPE_SMB380_WAKEUP 814
@ -250,5 +254,8 @@ void SMB380_writeOffsetTemp(uint16_t *offset, uint8_t EEPROM);
void SMB380_ShowMemory(void);
void SMB380_Selftest_1(void);
#ifdef __cplusplus
}
#endif
#endif /* SMB380_H_ */

View File

@ -24,6 +24,10 @@
#include "stdint.h"
#ifdef __cplusplus
extern "C" {
#endif
#define DMA_ENABLED 0
/*
@ -114,4 +118,8 @@ unsigned short nrf24l01_ssp_read_write(const uint8_t data);
unsigned short acam_trx(const uint8_t data);
void SSP0Handler(void);
#ifdef __cplusplus
}
#endif
#endif /* __SSP_H__ */

View File

@ -9,6 +9,14 @@
#ifndef BATTERY_H
#define BATTERY_H
#ifdef __cplusplus
extern "C" {
#endif
uint32_t battery_get_voltage(void);
#ifdef __cplusplus
}
#endif
#endif /* BATTERY_H */

View File

@ -9,6 +9,14 @@
#ifndef BUZZER_H
#define BUZZER_H
#ifdef __cplusplus
extern "C" {
#endif
void buzzer_beep(uint8_t pitch, uint16_t duration);
#ifdef __cplusplus
}
#endif
#endif /* BUZZER_H */

View File

@ -38,6 +38,10 @@
#ifndef __DISPLAY_H
#define __DISPLAY_H
#ifdef __cplusplus
extern "C" {
#endif
#define CLOCK_24HR (0)
#define CLOCK_AM_PM (1)
#define CLOCK_DISPLAY_SELECT (2)
@ -455,4 +459,8 @@ uint8_t switch_seg(uint8_t line, uint8_t index1, uint8_t index2);
* ************************************************************************************************/
void display_all_off(void);
#ifdef __cplusplus
}
#endif
#endif /* __DISPLAY_ */

View File

@ -9,6 +9,14 @@
#ifndef __DISPLAY_PUTCHAR_H
#define __DISPLAY_PUTCHAR_H
#ifdef __cplusplus
extern "C" {
#endif
void init_display_putchar(void);
#ifdef __cplusplus
}
#endif
#endif /* __DISPLAY_PUTCHAR_H */

View File

@ -23,6 +23,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// for correct inclusion of <msp430.h>
#ifndef __CC430F6137__
#define __CC430F6137__
@ -36,4 +40,8 @@
typedef uint8_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
#endif // _MSB_BOARD_H

View File

@ -9,6 +9,10 @@
#ifndef BUTTONS_H
#define BUTTONS_H
#ifdef __cplusplus
extern "C" {
#endif
// Button ports
#define BUTTON_STAR_PIN (BIT2)
#define BUTTON_NUM_PIN (BIT1)
@ -16,4 +20,8 @@
#define BUTTON_DOWN_PIN (BIT0)
#define BUTTON_BACKLIGHT_PIN (BIT3)
#ifdef __cplusplus
}
#endif
#endif

View File

@ -29,6 +29,10 @@
#include "cpu.h"
#include "periph_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Define the nominal CPU core clock in this board
*/
@ -116,5 +120,9 @@ typedef uint8_t radio_packet_length_t;
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /* BOARD_H_ */
/** @} */

View File

@ -20,6 +20,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Clock system configuration
* @{
@ -305,5 +309,9 @@
#define I2C_0_SDA_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_IOPBEN)
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -22,6 +22,10 @@
#include <stdint.h>
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
#define F_CPU (96000000)
@ -43,5 +47,9 @@ typedef uint8_t radio_packet_length_t;
*/
void loop_delay(uint32_t t);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* __BOARD_H */

View File

@ -24,6 +24,10 @@
#include <msp430x16x.h>
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
/* SCK = P3B5
* DATA = P3B4
*/
@ -37,5 +41,9 @@
#define SHT11_DATA_OUT P3DIR |= BIT5; /**< serial I/O as output */
#define SHT11_INIT P3DIR |= BIT5; /* FIO1DIR |= BIT25; PINSEL3 &= ~(BIT14|BIT15 | BIT16|BIT17); */
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* SHT11BOARD_H_ */

View File

@ -23,6 +23,14 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define INFOMEM (0x1000)
#ifdef __cplusplus
}
#endif
#endif /* BOARD-CONF_H */

View File

@ -28,6 +28,10 @@
#include "board-conf.h"
#ifdef __cplusplus
extern "C" {
#endif
// for correct inclusion of <msp430.h>
#ifndef __MSP430F1612__
#define __MSP430F1612__
@ -51,6 +55,10 @@
#define LED_RED_OFF LEDS_PxOUT |= LEDS_CONF_RED
#define LED_RED_TOGGLE LEDS_PxOUT ^= LEDS_CONF_RED
#ifdef __cplusplus
}
#endif
#include "board-conf.h"
typedef uint8_t radio_packet_length_t;

View File

@ -21,6 +21,10 @@
#ifndef _MSB_BOARD_H
#define _MSB_BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
// for correct inclusion of <msp430.h>
#ifndef __MSP430F1612__
#define __MSP430F1612__
@ -44,6 +48,10 @@
#define LED_RED_OFF LEDS_PxOUT |= LEDS_CONF_RED
#define LED_RED_TOGGLE LEDS_PxOUT ^= LEDS_CONF_RED
#ifdef __cplusplus
}
#endif
#include "board-conf.h"
typedef uint8_t radio_packet_length_t;

View File

@ -27,6 +27,10 @@
#include "lpc23xx.h"
#include "board.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SHT11_SCK_LOW FIO1CLR = BIT25; // serial clock line low
#define SHT11_SCK_HIGH FIO1SET = BIT25; // serial clock line high
#define SHT11_DATA ((FIO1PIN & BIT26) != 0) // read serial I/O
@ -36,5 +40,9 @@
#define SHT11_DATA_OUT (FIO1DIR |= BIT26) // serial I/O as output
#define SHT11_INIT FIO1DIR |= BIT25; PINSEL3 &= ~(BIT14|BIT15 | BIT16|BIT17);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* SHT11BOARD_H_ */

View File

@ -9,6 +9,14 @@
#ifndef __UART0_H
#define __UART0_H
#ifdef __cplusplus
extern "C" {
#endif
extern kernel_pid_t uart0_handler_pid;
#ifdef __cplusplus
}
#endif
#endif /* __UART0_H */

View File

@ -24,6 +24,10 @@
#include <stdint.h>
#include "lpc2387.h"
#ifdef __cplusplus
extern "C" {
#endif
#define VICIntEnClear VICIntEnClr
static inline void pllfeed(void)
@ -32,5 +36,9 @@ static inline void pllfeed(void)
PLLFEED = 0x55;
}
#ifdef __cplusplus
}
#endif
/** @} */
#endif // __MSBA2_COMMON_H

View File

@ -24,6 +24,10 @@
#include "msba2_common.h"
#include "bitarithm.h"
#ifdef __cplusplus
extern "C" {
#endif
#define LED_RED_PIN (BIT25)
#define LED_GREEN_PIN (BIT26)
@ -39,4 +43,8 @@ void init_clks1(void);
typedef uint8_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
#endif /* __BOARD_H */

View File

@ -21,6 +21,10 @@
#include "lpc2387.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief PWM device and pinout configuration
*/
@ -42,6 +46,9 @@
#define PWM_0_CH2_PIN (4)
#define PWM_0_FUNC (1)
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -24,6 +24,10 @@
#include "cpu.h"
#include "periph_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
*/
@ -73,5 +77,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Clock system configuration
* @{
@ -260,5 +264,9 @@
#define GPIO_15_IRQ EXTI2_IRQn
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -26,6 +26,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define F_CPU 1000000
void _native_LED_GREEN_OFF(void);
@ -43,5 +47,9 @@ void _native_LED_RED_TOGGLE(void);
typedef uint16_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* BOARD_H */

View File

@ -6,6 +6,10 @@
* directory for more details.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifdef MODULE_UART0
#include <sys/select.h>
void _native_handle_uart0_input(void);
@ -17,8 +21,12 @@ void _native_handle_uart0_input(void);
*/
void _native_init_uart0(char *stdiotype, char *ioparam, int replay);
int _native_set_uart_fds(void);
#endif
#endif /* MODULE_UART0 */
extern int _native_null_out_file;
extern int _native_null_in_pipe[2];
void board_init(void);
#ifdef __cplusplus
}
#endif

View File

@ -24,6 +24,9 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
@ -74,5 +77,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -21,6 +21,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer configuration
* @{
@ -136,4 +140,8 @@
#define GPIO_15_PIN 15
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */

View File

@ -24,6 +24,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Define the nominal CPU core clock in this board
*/
@ -65,5 +69,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -21,6 +21,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer configuration
* @{
@ -133,4 +137,8 @@
#define GPIO_15_PIN 15
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */

View File

@ -18,6 +18,10 @@
#include "lpc2387.h"
#include "cpu-conf.h"
#ifdef __cplusplus
extern "C" {
#endif
#define VICIntEnClear VICIntEnClr
void init_clks1(void);
@ -26,5 +30,9 @@ void bl_init_clks(void);
typedef uint8_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
/** @} */
#endif // __BOARD_H

View File

@ -21,6 +21,10 @@
#include "lpc2387.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief PWM device and pinout configuration
*/
@ -41,6 +45,9 @@
#define PWM_0_CH2_PIN (4)
#define PWM_0_FUNC (1)
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -29,6 +29,10 @@
#ifndef __RIOT__BOARDS__QEMU_I386__BOARD__H
#define __RIOT__BOARDS__QEMU_I386__BOARD__H
#ifdef __cplusplus
extern "C" {
#endif
#define UART_PORT (COM1_PORT) /* IO port to use for UART */
#define UART_IRQ (COM1_IRQ) /* IRQ line to use for UART */
@ -36,6 +40,10 @@
#define LED_RED_OFF /* not available */
#define LED_RED_TOGGLE /* not available */
#ifdef __cplusplus
}
#endif
#endif
/**

View File

@ -28,6 +28,10 @@
#ifndef __RIOT__BOARDS__QEMU_I386__CPU_CONF__H
#define __RIOT__BOARDS__QEMU_I386__CPU_CONF__H
#ifdef __cplusplus
extern "C" {
#endif
/* FIXME: This file is just a filler. The numbers are entirely random ... */
#define KERNEL_CONF_STACKSIZE_DEFAULT (8192)
@ -41,6 +45,10 @@
#define F_CPU (1000000) /* This value is unused in x86 */
#ifdef __cplusplus
}
#endif
#endif
/** @} */

View File

@ -13,6 +13,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
g_nvm_type_no_nvm_c = 0,
@ -55,4 +59,8 @@ extern nvm_err_t (*nvm_write)(nvm_interface_t nvm_interface, nvm_type_t nvm_type
extern nvm_err_t (*nvm_erase)(nvm_interface_t nvm_interface, nvm_type_t nvm_type ,uint32_t sector_bitfield);
extern void(*nvm_setsvar)(uint32_t zero_for_awesome);
#ifdef __cplusplus
}
#endif
#endif //NVM_H

View File

@ -13,6 +13,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/*-----------------------------------------------------------------*/
/* UART */
#define UART1_BASE (0x80005000)
@ -102,4 +106,8 @@ uint8_t uart1_getc(void);
void uart2_putc(uint8_t c);
uint8_t uart2_getc(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -23,6 +23,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define F_CPU (24000000) ///< CPU target speed in Hz
#define CTUNE 0xb
@ -31,4 +35,8 @@
typedef uint8_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
#endif

View File

@ -23,6 +23,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
*/
@ -75,5 +79,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer peripheral configuration
* @{
@ -116,5 +120,9 @@
#define GPIO_3_EXTINT 3
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -23,6 +23,9 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name The nominal CPU core clock in this board
@ -75,5 +78,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Clock system configuration
* @{
@ -279,4 +283,8 @@
#define GPIO_11_IRQ EXTI4_15_IRQn
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */

View File

@ -23,6 +23,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
*/
@ -99,5 +103,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Clock system configuration
* @{
@ -226,4 +230,8 @@
#define GPIO_11_IRQ EXTI0_IRQn
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */

View File

@ -24,6 +24,10 @@
#include "cpu.h"
#include "periph_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
*/
@ -85,5 +89,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -20,6 +20,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Clock system configuration
* @{
@ -386,5 +390,9 @@
#define GPIO_11_IRQ EXTI15_10_IRQn
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -8,6 +8,14 @@
#ifndef BOARD_CONF_H
#define BOARD_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
#define INFOMEM (0x1000)
#ifdef __cplusplus
}
#endif
#endif /* BOARD-CONF_H */

View File

@ -25,6 +25,10 @@
#ifndef _TELOSB_BOARD_H
#define _TELOSB_BOARD_H
#ifdef __cplusplus
extern "C" {
#endif
// for correct inclusion of <msp430.h>
#ifndef __MSP430F1611__
#define __MSP430F1611__
@ -56,6 +60,10 @@
#define LED_BLUE_OFF LEDS_PxOUT |= LEDS_CONF_BLUE
#define LED_BLUE_TOGGLE LEDS_PxOUT ^= LEDS_CONF_BLUE
#ifdef __cplusplus
}
#endif
#include <stdint.h>
typedef uint8_t radio_packet_length_t;

View File

@ -24,6 +24,9 @@
#include "cpu.h"
#include "cpu-conf.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Define the nominal CPU core clock in this board
@ -74,6 +77,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer peripheral configuration
* @{
@ -212,5 +216,9 @@
#define GPIO_B14_MAP 15
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */
/** @} */

View File

@ -20,7 +20,15 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define INFOMEM (0x1000)
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* BOARD-CONF_H */

View File

@ -27,6 +27,10 @@
#include "board-conf.h"
#ifdef __cplusplus
extern "C" {
#endif
// for correct inclusion of <msp430.h>
#ifndef __MSP430F1611__
#define __MSP430F1611__
@ -58,6 +62,10 @@
#define LED_BLUE_OFF LEDS_PxOUT |= LEDS_CONF_BLUE
#define LED_BLUE_TOGGLE LEDS_PxOUT ^= LEDS_CONF_BLUE
#ifdef __cplusplus
}
#endif
#include <msp430x16x.h>
typedef uint8_t radio_packet_length_t;

View File

@ -27,6 +27,10 @@
#include "board-conf.h"
#ifdef __cplusplus
extern "C" {
#endif
// for correct inclusion of <msp430.h>
#ifndef __MSP430F1611__
#define __MSP430F1611__
@ -58,6 +62,10 @@
#define LED_BLUE_OFF LEDS_PxOUT |= LEDS_CONF_BLUE
#define LED_BLUE_TOGGLE LEDS_PxOUT ^= LEDS_CONF_BLUE
#ifdef __cplusplus
}
#endif
#include <msp430x16x.h>
typedef uint8_t radio_packet_length_t;

View File

@ -23,6 +23,10 @@
* @file
*/
#ifdef __cplusplus
extern "C" {
#endif
#define MULTIBOOT_HEADER_MAGIC 0x1BADB002 /**< The magic number for the Multiboot header. */
#define MULTIBOOT_HEADER_FLAGS 0x00010003 /**< The flags for the Multiboot header. */
#define MULTIBOOT_HEADER_CHECKSUM (-(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)) /**< The checksum for the Multiboot header. */
@ -121,4 +125,8 @@ enum multiboot_info_flags {
MULTIBOOT_INFO_FLAGS_MMAP = 0x40,
};
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -23,6 +23,10 @@
#include "cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Define the nominal CPU core clock in this board
*/
@ -64,5 +68,9 @@
*/
void board_init(void);
#ifdef __cplusplus
}
#endif
#endif /** __BOARD_H */
/** @} */

View File

@ -19,6 +19,10 @@
#ifndef __PERIPH_CONF_H
#define __PERIPH_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Timer configuration
* @{
@ -115,4 +119,8 @@
#define GPIO_7_PIN 14
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* __PERIPH_CONF_H */

View File

@ -23,7 +23,15 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif
#define INFOMEM (0x1000)
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* BOARD-CONF_H */

View File

@ -32,6 +32,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __MSP430F2617__
#define __MSP430F2617__
#endif
@ -74,5 +78,9 @@
typedef uint8_t radio_packet_length_t;
#ifdef __cplusplus
}
#endif
/** @} */
#endif // _Z1_BOARD_H