Merge pull request #3056 from OlegHahm/board_leading_underscore_removal

boards: remove header guard under scores
This commit is contained in:
Oleg Hahm 2015-06-28 17:27:28 +02:00
commit e634b8c5a8
90 changed files with 330 additions and 324 deletions

View File

@ -18,8 +18,8 @@
* @author Christian Mehlis <mehlis@inf.fu-berlin.de> * @author Christian Mehlis <mehlis@inf.fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -67,5 +67,5 @@ void board_init(void);
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -17,8 +17,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -137,4 +137,4 @@
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -80,5 +80,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Andreas "Paul" Pauli <andreas.pauli@haw-hamburg.de> * @author Andreas "Paul" Pauli <andreas.pauli@haw-hamburg.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -379,5 +379,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de> * @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -83,5 +83,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de> * @author Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -285,4 +285,4 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#include "lpc2387.h" #include "lpc2387.h"
@ -54,5 +54,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -15,9 +15,6 @@
* *
* @author Marco Ziegert <ziegert@inf.fu-berlin.de> * @author Marco Ziegert <ziegert@inf.fu-berlin.de>
* @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de> * @author Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
* @version $Revision: 3854 $
*
* @note $Id: msba2acc-smb380.h 3854 2010-01-18 15:27:01 kasmi $
* *
*/ */
@ -34,9 +31,9 @@ extern "C" {
#define MSG_TYPE_SMB380_WAKEUP 814 #define MSG_TYPE_SMB380_WAKEUP 814
#define SMB380_X_AXIS 0 //X Axis-Name #define SMB380_X_AXIS 0 /* X Axis-Name */
#define SMB380_Y_AXIS 1 //Y Axis-Name #define SMB380_Y_AXIS 1 /* Y Axis-Name */
#define SMB380_Z_AXIS 2 //Z Axis-Name #define SMB380_Z_AXIS 2 /* Z Axis-Name */
#define LPM_PREVENT_SLEEP_ACCSENSOR BIT2 #define LPM_PREVENT_SLEEP_ACCSENSOR BIT2
@ -47,8 +44,8 @@ enum SMB380_MODE {
SMB380_THRESHOLD, SMB380_THRESHOLD,
SMB380_FALSEALERT SMB380_FALSEALERT
}; };
//volatile enum SMB380_MODE
volatile enum SMB380_MODE smb380_mode;// = SMB380_POLL; volatile enum SMB380_MODE smb380_mode;
/* Writeable values to EEPROM: from 0x0A (control1) to 0x1D (offset_T). /* Writeable values to EEPROM: from 0x0A (control1) to 0x1D (offset_T).
For writing enable ... flag and add eeprom_offset_address. For writing enable ... flag and add eeprom_offset_address.
@ -58,32 +55,32 @@ volatile enum SMB380_MODE smb380_mode;// = SMB380_POLL;
*/ */
#define SMB380_EEPROM_OFFSET 0x20 #define SMB380_EEPROM_OFFSET 0x20
//Chip-ID Bit0-2, default: 010b /* Chip-ID Bit0-2, default: 010b */
#define SMB380_CHIP_ID 0x00 #define SMB380_CHIP_ID 0x00
//Chip-ID mask /* Chip-ID mask */
#define SMB380_CHIP_ID_MASK 0x07 #define SMB380_CHIP_ID_MASK 0x07
//ml_version Bit0-3 ; al_version Bit4-7 /* ml_version Bit0-3 ; al_version Bit4-7 */
#define SMB380_AL_ML_VERSION 0x01 #define SMB380_AL_ML_VERSION 0x01
#define SMB380_AL_MASK 0xF0 #define SMB380_AL_MASK 0xF0
#define SMB380_ML_MASK 0x0F #define SMB380_ML_MASK 0x0F
//LSB_acc_x Bit6-7; new_data_x Bit0 /* LSB_acc_x Bit6-7; new_data_x Bit0 */
#define SMB380_ACC_X_LSB_NEWDATA 0x02 #define SMB380_ACC_X_LSB_NEWDATA 0x02
//MSB_acc_x Bit0-7 /* MSB_acc_x Bit0-7 */
#define SMB380_ACC_X_MSB 0x03 #define SMB380_ACC_X_MSB 0x03
//LSB_acc_y Bit6-7; new_data_y Bit0 /* LSB_acc_y Bit6-7; new_data_y Bit0 */
#define SMB380_ACC_Y_LSB_NEWDATA 0x04 #define SMB380_ACC_Y_LSB_NEWDATA 0x04
//MSB_acc_y Bit0-7 /* MSB_acc_y Bit0-7 */
#define SMB380_ACC_Y_MSB 0x05 #define SMB380_ACC_Y_MSB 0x05
//LSB_acc_z Bit6-7; new_data_z Bit0 /* LSB_acc_z Bit6-7; new_data_z Bit0 */
#define SMB380_ACC_Z_LSB_NEWDATA 0x06 #define SMB380_ACC_Z_LSB_NEWDATA 0x06
//MSB_acc_z Bit0-7 /* MSB_acc_z Bit0-7 */
#define SMB380_ACC_Z_MSB 0x07 #define SMB380_ACC_Z_MSB 0x07
#define SMB380_ACC_LSB_MASK 0xC0 #define SMB380_ACC_LSB_MASK 0xC0
#define SMB380_ACC_MSB_MASK 0xFF #define SMB380_ACC_MSB_MASK 0xFF
#define SMB380_ACC_NEWDATA_MASK 0x01 #define SMB380_ACC_NEWDATA_MASK 0x01
//Temperature Bit0-7 /* Temperature Bit0-7 */
#define SMB380_TEMP 0x08 #define SMB380_TEMP 0x08
//Status register, contains six flags /* Status register, contains six flags */
#define SMB380_STATUS 0x09 #define SMB380_STATUS 0x09
#define SMB380_STATUS_ST_RESULT_MASK 0x80 #define SMB380_STATUS_ST_RESULT_MASK 0x80
#define SMB380_STATUS_ALERT_PHASE_MASK 0x10 #define SMB380_STATUS_ALERT_PHASE_MASK 0x10
@ -91,7 +88,7 @@ volatile enum SMB380_MODE smb380_mode;// = SMB380_POLL;
#define SMB380_STATUS_HG_LATCHED_MASK 0x04 #define SMB380_STATUS_HG_LATCHED_MASK 0x04
#define SMB380_STATUS_STATUS_LG_MASK 0x02 #define SMB380_STATUS_STATUS_LG_MASK 0x02
#define SMB380_STATUS_STATUS_HG_MASK 0x01 #define SMB380_STATUS_STATUS_HG_MASK 0x01
//Control register - contains seven values, default: x000 0000b /* Control register - contains seven values, default: x000 0000b */
#define SMB380_CONTROL1 0x0A #define SMB380_CONTROL1 0x0A
#define SMB380_CONTROL1_RESET_INT_MASK 0x40 #define SMB380_CONTROL1_RESET_INT_MASK 0x40
#define SMB380_CONTROL1_UPDATE_MASK 0x20 #define SMB380_CONTROL1_UPDATE_MASK 0x20
@ -100,7 +97,7 @@ volatile enum SMB380_MODE smb380_mode;// = SMB380_POLL;
#define SMB380_CONTROL1_SELF_TEST_0_MASK 0x04 #define SMB380_CONTROL1_SELF_TEST_0_MASK 0x04
#define SMB380_CONTROL1_SOFT_RESET_MASK 0x02 #define SMB380_CONTROL1_SOFT_RESET_MASK 0x02
#define SMB380_CONTROL1_SLEEP_MASK 0x01 #define SMB380_CONTROL1_SLEEP_MASK 0x01
//Control register - contains six values, default: x000 0011b /* Control register - contains six values, default: x000 0011b */
#define SMB380_CONTROL2 0x0B #define SMB380_CONTROL2 0x0B
#define SMB380_CONTROL2_ALERT_MASK 0x80 #define SMB380_CONTROL2_ALERT_MASK 0x80
#define SMB380_CONTROL2_ANY_MOTION_MASK 0x40 #define SMB380_CONTROL2_ANY_MOTION_MASK 0x40
@ -108,30 +105,30 @@ volatile enum SMB380_MODE smb380_mode;// = SMB380_POLL;
#define SMB380_CONTROL2_COUNTER_LG_MASK 0x0C #define SMB380_CONTROL2_COUNTER_LG_MASK 0x0C
#define SMB380_CONTROL2_ENABLE_HG_MASK 0x02 #define SMB380_CONTROL2_ENABLE_HG_MASK 0x02
#define SMB380_CONTROL2_ENABLE_LG_MASK 0x01 #define SMB380_CONTROL2_ENABLE_LG_MASK 0x01
//default: 20 /* default: 20 */
#define SMB380_LG_THRES 0x0C #define SMB380_LG_THRES 0x0C
//default: 150 /* default: 150 */
#define SMB380_LG_DUR 0x0D #define SMB380_LG_DUR 0x0D
//default: 160 /* default: 160 */
#define SMB380_HG_THRES 0x0E #define SMB380_HG_THRES 0x0E
//default: 150 /* default: 150 */
#define SMB380_HG_DUR 0x0F #define SMB380_HG_DUR 0x0F
//default: 0 /* default: 0 */
#define SMB380_ANY_MOTION_THRES 0x10 #define SMB380_ANY_MOTION_THRES 0x10
//default: 0000 0000b /* default: 0000 0000b */
#define SMB380_ANY_MOTION_DUR_HYST 0x1 #define SMB380_ANY_MOTION_DUR_HYST 0x1
#define SMB380_ANY_MOTION_DUR_MASK 0xC0 #define SMB380_ANY_MOTION_DUR_MASK 0xC0
#define SMB380_ANY_MOTION_DUR_HG_HYST_MASK 0x38 #define SMB380_ANY_MOTION_DUR_HG_HYST_MASK 0x38
#define SMB380_ANY_MOTION_DUR_LG_HYST_MASK 0x07 #define SMB380_ANY_MOTION_DUR_LG_HYST_MASK 0x07
//default: 162 /* default: 162 */
#define SMB380_CUST1 0x12 #define SMB380_CUST1 0x12
//default: 13 /* default: 13 */
#define SMB380_CUST2 0x13 #define SMB380_CUST2 0x13
//default: xxx0 1110b /* default: xxx0 1110b */
#define SMB380_CONTROL3 0x14 #define SMB380_CONTROL3 0x14
#define SMB380_CONTROL3_RANGE_MASK 0x18 #define SMB380_CONTROL3_RANGE_MASK 0x18
#define SMB380_CONTROL3_BANDWITH_MASK 0x07 #define SMB380_CONTROL3_BANDWITH_MASK 0x07
//default: 1000 0000b /* default: 1000 0000b */
#define SMB380_CONTROL4 0x15 #define SMB380_CONTROL4 0x15
#define SMB380_CONTROL4_SPI4_MASK 0x80 #define SMB380_CONTROL4_SPI4_MASK 0x80
#define SMB380_CONTROL4_ENABLE_ADV_INT_MASK 0x40 #define SMB380_CONTROL4_ENABLE_ADV_INT_MASK 0x40
@ -171,9 +168,9 @@ volatile enum SMB380_MODE smb380_mode;// = SMB380_POLL;
#define SMB380_BAND_WIDTH_375HZ 0x04 #define SMB380_BAND_WIDTH_375HZ 0x04
#define SMB380_BAND_WIDTH_750HZ 0x05 #define SMB380_BAND_WIDTH_750HZ 0x05
#define SMB380_BAND_WIDTH_1500HZ 0x06 #define SMB380_BAND_WIDTH_1500HZ 0x06
//SMB380_RING_BUFF_SIZE * int16_t (2Byte) * 4 (x,y,z,Temp) = 512 Byte (for 64) /* SMB380_RING_BUFF_SIZE * int16_t (2Byte) * 4 (x,y,z,Temp) = 512 Byte (for 64) */
#define SMB380_RING_BUFF_SIZE 256 #define SMB380_RING_BUFF_SIZE 256
//TODO chsnge size to 2048 /* TODO chsnge size to 2048 */
#define SMB380_RING_BUFF_MAX_THREADS 10 #define SMB380_RING_BUFF_MAX_THREADS 10
#define SMB380_SAMPLE_RATE_MAX 3000 #define SMB380_SAMPLE_RATE_MAX 3000
@ -192,15 +189,15 @@ void SMB380_update_image(void);
* enable write to 0x16 to 0x3D * enable write to 0x16 to 0x3D
**/ **/
void SMB380_enable_eeprom_default(void); void SMB380_enable_eeprom_default(void);
//Example Hysterese function /* Example Hysterese function */
uint8_t SMB380_HystereseFunctionSample(int16_t *value); uint8_t SMB380_HystereseFunctionSample(int16_t *value);
//Simple api for single-sample, single thread interrupt mode /* Simple api for single-sample, single thread interrupt mode */
uint8_t SMB380_init_simple(uint16_t samplerate, uint8_t bandwidth, uint8_t SMB380_init_simple(uint16_t samplerate, uint8_t bandwidth,
uint8_t range); uint8_t range);
//Enables Interrupts (normally only once called) /* Enables Interrupts (normally only once called) */
uint8_t SMB380_init(uint8_t (*func)(int16_t *)); uint8_t SMB380_init(uint8_t (*func)(int16_t *));
void SMB380_setSampleRate(uint16_t rate); void SMB380_setSampleRate(uint16_t rate);
uint16_t SMB380_getSampleRate(void); uint16_t SMB380_getSampleRate(void);
@ -214,7 +211,7 @@ uint8_t checkRange(int16_t *value);
void SMB380_enableEEPROM(void); void SMB380_enableEEPROM(void);
void SMB380_disableEEPROM(void); void SMB380_disableEEPROM(void);
// getter /* getter */
float SMB380_getSampleRatio(void); float SMB380_getSampleRatio(void);
void SMB380_getAcceleration(unsigned char axis, int16_t *pAbs, int16_t *pMg); void SMB380_getAcceleration(unsigned char axis, int16_t *pAbs, int16_t *pMg);
int16_t SMB380_getTemperature(void); int16_t SMB380_getTemperature(void);
@ -229,7 +226,7 @@ unsigned char SMB380_readOffsetTemp(uint16_t *offset);
unsigned char SMB380_readGain(uint16_t *gain); unsigned char SMB380_readGain(uint16_t *gain);
unsigned char SMB380_readGainTemp(uint16_t *gain); unsigned char SMB380_readGainTemp(uint16_t *gain);
// setter /* setter */
void SMB380_setTempOffset(uint16_t offset, uint8_t EEPROM); void SMB380_setTempOffset(uint16_t offset, uint8_t EEPROM);
void SMB380_setWakeUpPause(unsigned char duration); void SMB380_setWakeUpPause(unsigned char duration);
void SMB380_setBandWidth(unsigned char bandWidth); void SMB380_setBandWidth(unsigned char bandWidth);
@ -250,7 +247,7 @@ void SMB380_resetInterruptFlags(void);
void SMB380_writeOffset(uint16_t *offset, uint8_t EEPROM); void SMB380_writeOffset(uint16_t *offset, uint8_t EEPROM);
void SMB380_writeOffsetTemp(uint16_t *offset, uint8_t EEPROM); void SMB380_writeOffsetTemp(uint16_t *offset, uint8_t EEPROM);
// stats /* stats */
void SMB380_ShowMemory(void); void SMB380_ShowMemory(void);
void SMB380_Selftest_1(void); void SMB380_Selftest_1(void);

View File

@ -19,8 +19,8 @@
* *
* @note $Id: avsextrem-ssp0.c 3854 2010-01-18 15:27:01Z zkasmi $ * @note $Id: avsextrem-ssp0.c 3854 2010-01-18 15:27:01Z zkasmi $
*/ */
#ifndef __SSP_H__ #ifndef SSP_H_
#define __SSP_H__ #define SSP_H_
#include "stdint.h" #include "stdint.h"
@ -56,13 +56,13 @@ extern "C" {
#define FIFOSIZE 8 #define FIFOSIZE 8
/* SSP select pin */ /* SSP select pin */
#define SSP0_SEL 1 << 21 //P1.21 SMB380 #define SSP0_SEL 1 << 21 /* P1.21 SMB380 */
#define SSP0_SELN 1 << 16 //P0.16 Nanotron #define SSP0_SELN 1 << 16 /* P0.16 Nanotron */
/* SSP1 external interrupt Pin (SMB380 specific) */ /* SSP1 external interrupt Pin (SMB380 specific) */
#define SMB380_INT1 1 << 1 //P0.1 #define SMB380_INT1 1 << 1 /* P0.1 */
#define BMA180_INT1 1 << 8 //P2.8 #define BMA180_INT1 1 << 8 /* P2.8 */
@ -122,4 +122,4 @@ void SSP0Handler(void);
} }
#endif #endif
#endif /* __SSP_H__ */ #endif /* SSP_H_ */

View File

@ -17,8 +17,8 @@
* @author Ian Martin <ian@locicontrols.com> * @author Ian Martin <ian@locicontrols.com>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph/gpio.h" #include "periph/gpio.h"
@ -100,5 +100,5 @@ void board_init(void);
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Ian Martin <ian@locicontrols.com> * @author Ian Martin <ian@locicontrols.com>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#include "gptimer.h" #include "gptimer.h"
@ -190,5 +190,5 @@ extern "C" {
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef BATTERY_H #ifndef BATTERY_H_
#define BATTERY_H #define BATTERY_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef BUZZER_H #ifndef BUZZER_H_
#define BUZZER_H #define BUZZER_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -35,8 +35,8 @@
* Basic display functions. * Basic display functions.
* ************************************************************************************************/ * ************************************************************************************************/
#ifndef __DISPLAY_H #ifndef DISPLAY_H_
#define __DISPLAY_H #define DISPLAY_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -463,4 +463,4 @@ void display_all_off(void);
} }
#endif #endif
#endif /* __DISPLAY_ */ #endif /* DISPLAY_ */

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef __DISPLAY_PUTCHAR_H #ifndef DISPLAY_PUTCHAR_H_
#define __DISPLAY_PUTCHAR_H #define DISPLAY_PUTCHAR_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -19,4 +19,4 @@ void init_display_putchar(void);
} }
#endif #endif
#endif /* __DISPLAY_PUTCHAR_H */ #endif /* DISPLAY_PUTCHAR_H_ */

View File

@ -18,8 +18,8 @@
* @author unknwon * @author unknwon
*/ */
#ifndef _CHRONOS_BOARD_H #ifndef CHRONOS_BOARD_H_
#define _CHRONOS_BOARD_H #define CHRONOS_BOARD_H_
#include <stdint.h> #include <stdint.h>
@ -44,5 +44,5 @@ typedef uint8_t radio_packet_length_t;
} }
#endif #endif
#endif /* _CHRONOS_BOARD_H */ #endif /* _CHRONOS_BOARD_H_ */
/** @} */ /** @} */

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef BUTTONS_H #ifndef BUTTONS_H_
#define BUTTONS_H #define BUTTONS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -16,8 +16,8 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -32,4 +32,4 @@ extern "C" {
} }
#endif #endif
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -19,8 +19,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph_conf.h" #include "periph_conf.h"
@ -94,5 +94,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -99,5 +99,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de> * @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -303,5 +303,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef NG_AT86RF2XX_PARAMS_H #ifndef NG_AT86RF2XX_PARAMS_H_
#define NG_AT86RF2XX_PARAMS_H #define NG_AT86RF2XX_PARAMS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -17,8 +17,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -318,5 +318,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -20,8 +20,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include <stdint.h> #include <stdint.h>
@ -102,5 +102,5 @@ void board_init(void);
} }
#endif #endif
#endif /* __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -89,5 +89,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -382,34 +382,34 @@
/* F_cco0 = (2 * M * F_in) / N */ /* F_cco0 = (2 * M * F_in) / N */
#define __M (((PLL0CFG_Val ) & 0x7FFF) + 1) #define M (((PLL0CFG_Val ) & 0x7FFF) + 1)
#define __N (((PLL0CFG_Val >> 16) & 0x00FF) + 1) #define N (((PLL0CFG_Val >> 16) & 0x00FF) + 1)
#define __FCCO(__F_IN) ((2ULL * __M * __F_IN) / __N) #define FCCO(F_IN) ((2ULL * M * F_IN) / N)
#define __CCLK_DIV (((CCLKCFG_Val ) & 0x00FF) + 1) #define CCLK_DIV (((CCLKCFG_Val ) & 0x00FF) + 1)
/* Determine core clock frequency according to settings */ /* Determine core clock frequency according to settings */
#if (PLL0_SETUP) #if (PLL0_SETUP)
#if ((CLKSRCSEL_Val & 0x03) == 1) #if ((CLKSRCSEL_Val & 0x03) == 1)
#define __CORE_CLK (__FCCO(OSC_CLK) / __CCLK_DIV) #define CORE_CLK (FCCO(OSC_CLK) / CCLK_DIV)
#elif ((CLKSRCSEL_Val & 0x03) == 2) #elif ((CLKSRCSEL_Val & 0x03) == 2)
#define __CORE_CLK (__FCCO(RTC_CLK) / __CCLK_DIV) #define CORE_CLK (FCCO(RTC_CLK) / CCLK_DIV)
#else #else
#define __CORE_CLK (__FCCO(IRC_OSC) / __CCLK_DIV) #define CORE_CLK (FCCO(IRC_OSC) / CCLK_DIV)
#endif #endif
#else #else
#if ((CLKSRCSEL_Val & 0x03) == 1) #if ((CLKSRCSEL_Val & 0x03) == 1)
#define __CORE_CLK (OSC_CLK / __CCLK_DIV) #define CORE_CLK (OSC_CLK / CCLK_DIV)
#elif ((CLKSRCSEL_Val & 0x03) == 2) #elif ((CLKSRCSEL_Val & 0x03) == 2)
#define __CORE_CLK (RTC_CLK / __CCLK_DIV) #define CORE_CLK (RTC_CLK / CCLK_DIV)
#else #else
#define __CORE_CLK (IRC_OSC / __CCLK_DIV) #define CORE_CLK (IRC_OSC / CCLK_DIV)
#endif #endif
#endif #endif
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------
Clock Variable definitions Clock Variable definitions
*----------------------------------------------------------------------------*/ *----------------------------------------------------------------------------*/
uint32_t system_clock = __CORE_CLK;/*!< System Clock Frequency (Core Clock)*/ uint32_t system_clock = CORE_CLK;/*!< System Clock Frequency (Core Clock)*/
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------

View File

@ -18,8 +18,8 @@
* @author unknown * @author unknown
*/ */
#ifndef BOARD_CONF_H #ifndef BOARD_CONF_H_
#define BOARD_CONF_H #define BOARD_CONF_H_
#include <stdint.h> #include <stdint.h>

View File

@ -23,8 +23,8 @@
* @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project * @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project
*/ */
#ifndef _MSB_BOARD_H #ifndef MSB_BOARD_H_
#define _MSB_BOARD_H #define MSB_BOARD_H_
#include "board-conf.h" #include "board-conf.h"
@ -32,12 +32,12 @@
extern "C" { extern "C" {
#endif #endif
// for correct inclusion of <msp430.h> /* for correct inclusion of <msp430.h> */
#ifndef __MSP430F1612__ #ifndef __MSP430F1612__
#define __MSP430F1612__ #define __MSP430F1612__
#endif #endif
//MSB430 core /* MSB430 core */
#define MSP430_INITIAL_CPU_SPEED 2457600uL #define MSP430_INITIAL_CPU_SPEED 2457600uL
#define F_CPU MSP430_INITIAL_CPU_SPEED #define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768 #define F_RC_OSCILLATOR 32768
@ -64,4 +64,4 @@ extern "C" {
typedef uint8_t radio_packet_length_t; typedef uint8_t radio_packet_length_t;
/** @} */ /** @} */
#endif // _MSB_BOARD_H #endif /* MSB_BOARD_H_ */

View File

@ -16,9 +16,9 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */ /* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -18,14 +18,14 @@
* @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project * @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project
*/ */
#ifndef _MSB_BOARD_H #ifndef MSB_BOARD_H_
#define _MSB_BOARD_H #define MSB_BOARD_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
// for correct inclusion of <msp430.h> /* for correct inclusion of <msp430.h> */
#ifndef __MSP430F1612__ #ifndef __MSP430F1612__
#define __MSP430F1612__ #define __MSP430F1612__
#endif #endif
@ -57,4 +57,4 @@ extern "C" {
typedef uint8_t radio_packet_length_t; typedef uint8_t radio_packet_length_t;
/** @} */ /** @} */
#endif // _MSB_BOARD_H #endif /* MSB_BOARD_H_ */

View File

@ -16,9 +16,9 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */ /* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -31,13 +31,21 @@
extern "C" { extern "C" {
#endif #endif
#define SHT11_SCK_LOW FIO1CLR = BIT25; // serial clock line low /* serial clock line low */
#define SHT11_SCK_HIGH FIO1SET = BIT25; // serial clock line high #define SHT11_SCK_LOW FIO1CLR = BIT25;
#define SHT11_DATA ((FIO1PIN & BIT26) != 0) // read serial I/O /* serial clock line high */
#define SHT11_DATA_LOW (FIO1CLR = BIT26); // serial I/O line low #define SHT11_SCK_HIGH FIO1SET = BIT25;
#define SHT11_DATA_HIGH (FIO1SET = BIT26); // serial I/O line high /* read serial I/O */
#define SHT11_DATA_IN (FIO1DIR &= ~BIT26) // serial I/O as input #define SHT11_DATA ((FIO1PIN & BIT26) != 0)
#define SHT11_DATA_OUT (FIO1DIR |= BIT26) // serial I/O as output /* serial I/O line low */
#define SHT11_DATA_LOW (FIO1CLR = BIT26);
/* serial I/O line high */
#define SHT11_DATA_HIGH (FIO1SET = BIT26);
/* serial I/O as input */
#define SHT11_DATA_IN (FIO1DIR &= ~BIT26)
/* serial I/O as output */
#define SHT11_DATA_OUT (FIO1DIR |= BIT26)
#define SHT11_INIT FIO1DIR |= BIT25; PINSEL3 &= ~(BIT14|BIT15 | BIT16|BIT17); #define SHT11_INIT FIO1DIR |= BIT25; PINSEL3 &= ~(BIT14|BIT15 | BIT16|BIT17);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef __UART0_H #ifndef UART0_H_
#define __UART0_H #define UART0_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -19,4 +19,4 @@ extern kernel_pid_t uart0_handler_pid;
} }
#endif #endif
#endif /* __UART0_H */ #endif /* UART0_H */

View File

@ -17,8 +17,8 @@
* *
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef __MSBA2_COMMON_H #ifndef MSBA2_COMMON_H_
#define __MSBA2_COMMON_H #define MSBA2_COMMON_H_
#include <stdint.h> #include <stdint.h>
@ -41,4 +41,4 @@ static inline void pllfeed(void)
#endif #endif
/** @} */ /** @} */
#endif // __MSBA2_COMMON_H #endif /* MSBA2_COMMON_H_ */

View File

@ -18,19 +18,20 @@
extern char *lpc_return_strings[]; extern char *lpc_return_strings[];
struct sector_info_struct { // an array of struct sector_info_struct { /* an array of */
int address; // where each sector is located int address; /* where each sector is located */
int size; // and how big it is int size; /* and how big it is */
}; };
struct chip_info_struct { struct chip_info_struct {
char *part_number; // human readable part number char *part_number; /* human readable part number */
char *id_string; // id string sent by "J" command char *id_string; /* id string sent by "J" command */
unsigned int ram_addr; // where to download into RAM unsigned int ram_addr; /* where to download into RAM */
int chunk_size; // download to ram chunk size int chunk_size; /* download to ram chunk size */
int num_sector; // number of flash sectors int num_sector; /* number of flash sectors */
struct sector_info_struct *layout; // layout of sectors struct sector_info_struct *layout; /* layout of sectors */
const unsigned int *bootprog; // code that boots into user program (NULL = DTR/RTS only) const unsigned int *bootprog; /* code that boots into user program
(NULL = DTR/RTS only) */
}; };
extern struct chip_info_struct chip_info[]; extern struct chip_info_struct chip_info[];

View File

@ -16,10 +16,10 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef CONTROL_2XXXX_H #ifndef CONTROL_2XXX_H_
#define CONTROL_2XXXX_H #define CONTROL_2XXX_H_
void hard_reset_to_bootloader(void); void hard_reset_to_bootloader(void);
void hard_reset_to_user_code(void); void hard_reset_to_user_code(void);
#endif // ..._H #endif /* CONTROL_2XXX_H_ */

View File

@ -16,8 +16,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef LPC2K_PGM #ifndef LPC2K_PGM_H_
#define LPC2K_PGM #define LPC2K_PGM_H
/* gets a name like "115200", sets baudrate accordingly. */ /* gets a name like "115200", sets baudrate accordingly. */
void change_baud(const char *baud_name); void change_baud(const char *baud_name);
@ -27,4 +27,4 @@ void change_baud(const char *baud_name);
*/ */
void signal_terminal(void); void signal_terminal(void);
#endif // LPC2K_PGM #endif /* LPC2K_PGM_H_ */

View File

@ -16,8 +16,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifndef SERIAL_H #ifndef SERIAL_H_
#define SERIAL_H #define SERIAL_H_
extern char *baud_rate; extern char *baud_rate;
@ -34,4 +34,4 @@ void set_rts(int val);
void set_dtr(int val); void set_dtr(int val);
void change_baud(const char *baud_name); void change_baud(const char *baud_name);
#endif // SERIAL_H #endif /* SERIAL_H_ */

View File

@ -18,8 +18,8 @@
* @author unknown * @author unknown
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "msba2_common.h" #include "msba2_common.h"
#include "bitarithm.h" #include "bitarithm.h"
@ -47,5 +47,5 @@ typedef uint8_t radio_packet_length_t;
} }
#endif #endif
#endif /* __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#include "lpc2387.h" #include "lpc2387.h"
@ -55,5 +55,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Fabian Nack <nack@inf.fu-berlin.de> * @author Fabian Nack <nack@inf.fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph_conf.h" #include "periph_conf.h"
@ -105,5 +105,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Fabian Nack <nack@inf.fu-berlin.de> * @author Fabian Nack <nack@inf.fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -256,5 +256,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -17,8 +17,8 @@
* @author Joakim Gebart <joakim.gebart@eistec.se> * @author Joakim Gebart <joakim.gebart@eistec.se>
*/ */
#ifndef MULLE_PERIPH_CONF_H #ifndef MULLE_PERIPH_CONF_H_
#define MULLE_PERIPH_CONF_H #define MULLE_PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
@ -811,5 +811,5 @@ extern "C"
} }
#endif #endif
#endif /* MULLE_PERIPH_CONF_H */ #endif /* MULLE_PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -21,8 +21,8 @@
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de> * @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
*/ */
#ifndef BOARD_H #ifndef BOARD_H_
#define BOARD_H #define BOARD_H_
#include <stdint.h> #include <stdint.h>
@ -52,4 +52,4 @@ typedef uint16_t radio_packet_length_t;
#endif #endif
/** @} */ /** @} */
#endif /* BOARD_H */ #endif /* BOARD_H_ */

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef BOARD_INTERNAL_H #ifndef BOARD_INTERNAL_H_
#define BOARD_INTERNAL_H #define BOARD_INTERNAL_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -160,5 +160,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -17,8 +17,8 @@
* @author Kaspar Schleiser <kaspar.schleiser@fu-berlin.de> * @author Kaspar Schleiser <kaspar.schleiser@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -112,5 +112,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de> * @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -287,5 +287,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph/gpio.h" #include "periph/gpio.h"
@ -88,5 +88,5 @@ void board_init(void);
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -174,5 +174,5 @@
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -19,8 +19,8 @@
* @author Johann Fischer <j.fischer@phytec.de> * @author Johann Fischer <j.fischer@phytec.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph_conf.h" #include "periph_conf.h"
@ -110,5 +110,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* __BOARD_H */
/** @} */ /** @} */

View File

@ -22,8 +22,8 @@
extern "C" { extern "C" {
#endif #endif
#ifndef KW2XRF_PARAMS_H #ifndef KW2XRF_PARAMS_H_
#define KW2XRF_PARAMS_H #define KW2XRF_PARAMS_H_
/** /**
* @name KW2XRF configuration * @name KW2XRF configuration

View File

@ -19,8 +19,8 @@
* @author Jonas Remmert <j.remmert@phytec.de> * @author Jonas Remmert <j.remmert@phytec.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#include "cpu_conf.h" #include "cpu_conf.h"

View File

@ -19,8 +19,8 @@
* @author Timo Ziegler <timo.ziegler@fu-berlin.de> * @author Timo Ziegler <timo.ziegler@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -82,5 +82,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -125,4 +125,4 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -19,8 +19,8 @@
* @author Timo Ziegler <timo.ziegler@fu-berlin.de> * @author Timo Ziegler <timo.ziegler@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -73,5 +73,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -144,4 +144,4 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -18,8 +18,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include <stdint.h> #include <stdint.h>
@ -59,5 +59,5 @@ typedef uint8_t radio_packet_length_t;
} }
#endif #endif
#endif /* __BOARD_H */
/** @} */ /** @} */
#endif /* BOARD_H_ */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#include "lpc2387.h" #include "lpc2387.h"
@ -54,5 +54,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de> * @author René Kijewski <rene.kijewski@fu-berlin.de>
*/ */
#ifndef __RIOT__BOARDS__QEMU_I386__BOARD__H #ifndef QEMU_I386_BOARD_H_
#define __RIOT__BOARDS__QEMU_I386__BOARD__H #define QEMU_I386_BOARD_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -16,8 +16,8 @@
* @author René Kijewski <rene.kijewski@fu-berlin.de> * @author René Kijewski <rene.kijewski@fu-berlin.de>
*/ */
#ifndef __RIOT__BOARDS__QEMU_I386__CPU_CONF__H #ifndef QEMU_I386_CPU_CONF_H_
#define __RIOT__BOARDS__QEMU_I386__CPU_CONF__H #define QEMU_I386_CPU_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -7,8 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef NVM_H #ifndef NVM_H_
#define NVM_H #define NVM_H_
#include <stdint.h> #include <stdint.h>
@ -62,4 +62,4 @@ extern void(*nvm_setsvar)(uint32_t zero_for_awesome);
} }
#endif #endif
#endif //NVM_H #endif /* NVM_H_ */

View File

@ -7,8 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef UART_H #ifndef UART_H_
#define UART_H #define UART_H_
#include <stdint.h> #include <stdint.h>

View File

@ -18,8 +18,8 @@
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de> * @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
*/ */
#ifndef REDBEE_ECONOTAG_BOARD_H #ifndef REDBEE_ECONOTAG_BOARD_H_
#define REDBEE_ECONOTAG_BOARD_H #define REDBEE_ECONOTAG_BOARD_H_
#include <stdint.h> #include <stdint.h>
@ -27,7 +27,7 @@
extern "C" { extern "C" {
#endif #endif
#define F_CPU (24000000) ///< CPU target speed in Hz #define F_CPU (24000000) /**< CPU target speed in Hz */
#define CTUNE 0xb #define CTUNE 0xb
#define IBIAS 0x1f #define IBIAS 0x1f

View File

@ -16,9 +16,9 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */ /* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -19,8 +19,8 @@
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de> * @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph_conf.h" #include "periph_conf.h"
@ -116,5 +116,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Kaspar Schleiser <kaspar@schleiser.de> * @author Kaspar Schleiser <kaspar@schleiser.de>
*/ */
#ifndef NG_AT86RF2XX_PARAMS_H #ifndef NG_AT86RF2XX_PARAMS_H_
#define NG_AT86RF2XX_PARAMS_H #define NG_AT86RF2XX_PARAMS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -19,8 +19,8 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#include <stdint.h> #include <stdint.h>
#include "cpu.h" #include "cpu.h"
@ -263,5 +263,5 @@ static const pwm_conf_t pwm_config[] = {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -15,8 +15,8 @@
* *
* @author Christian Mehlis <mehlis@inf.fu-berlin.de> * @author Christian Mehlis <mehlis@inf.fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -252,5 +252,5 @@
} /* end extern "C" */ } /* end extern "C" */
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -82,5 +82,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -275,4 +275,4 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -107,5 +107,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -248,4 +248,4 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "periph_conf.h" #include "periph_conf.h"
@ -93,5 +93,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -17,8 +17,8 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de> * @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -300,5 +300,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef BOARD_CONF_H #ifndef BOARD_CONF_H_
#define BOARD_CONF_H #define BOARD_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -23,19 +23,19 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef _TELOSB_BOARD_H #ifndef TELOSB_BOARD_H_
#define _TELOSB_BOARD_H #define TELOSB_BOARD_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
// for correct inclusion of <msp430.h> /* for correct inclusion of <msp430.h> */
#ifndef __MSP430F1611__ #ifndef __MSP430F1611__
#define __MSP430F1611__ #define __MSP430F1611__
#endif #endif
//TelosB core /* TelosB core */
#define MSP430_INITIAL_CPU_SPEED 2457600uL #define MSP430_INITIAL_CPU_SPEED 2457600uL
#define F_CPU MSP430_INITIAL_CPU_SPEED #define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768 #define F_RC_OSCILLATOR 32768
@ -70,4 +70,4 @@ extern "C" {
typedef uint8_t radio_packet_length_t; typedef uint8_t radio_packet_length_t;
/** @} */ /** @} */
#endif // _TELOSB_BOARD_H #endif /* TELOSB_BOARD_H_ */

View File

@ -16,9 +16,9 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */ /* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
#include "cpu_conf.h" #include "cpu_conf.h"
@ -82,5 +82,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -346,5 +346,5 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author unknown * @author unknown
*/ */
#ifndef BOARD_CONF_H #ifndef BOARD_CONF_H_
#define BOARD_CONF_H #define BOARD_CONF_H_
#include <stdint.h> #include <stdint.h>

View File

@ -16,9 +16,9 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */ /* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -23,8 +23,8 @@
* @author Milan Babel <babel@inf.fu-berlin.de> * @author Milan Babel <babel@inf.fu-berlin.de>
*/ */
#ifndef _WSN_BOARD_H #ifndef WSN_BOARD_H_
#define _WSN_BOARD_H #define WSN_BOARD_H_
#include "board-conf.h" #include "board-conf.h"
@ -72,4 +72,4 @@ extern "C" {
typedef uint8_t radio_packet_length_t; typedef uint8_t radio_packet_length_t;
/** @} */ /** @} */
#endif // _WSN_BOARD_H #endif /* WSN_BOARD_H_ */

View File

@ -23,8 +23,8 @@
* @author Milan Babel <babel@inf.fu-berlin.de> * @author Milan Babel <babel@inf.fu-berlin.de>
*/ */
#ifndef _WSN_BOARD_H #ifndef WSN_BOARD_H_
#define _WSN_BOARD_H #define WSN_BOARD_H_
#include "board-conf.h" #include "board-conf.h"
@ -32,12 +32,12 @@
extern "C" { extern "C" {
#endif #endif
// for correct inclusion of <msp430.h> /* for correct inclusion of <msp430.h> */
#ifndef __MSP430F1611__ #ifndef __MSP430F1611__
#define __MSP430F1611__ #define __MSP430F1611__
#endif #endif
//MSB430 core /* MSB430 core */
#define MSP430_INITIAL_CPU_SPEED 800000uL #define MSP430_INITIAL_CPU_SPEED 800000uL
#define F_CPU MSP430_INITIAL_CPU_SPEED #define F_CPU MSP430_INITIAL_CPU_SPEED
#define F_RC_OSCILLATOR 32768 #define F_RC_OSCILLATOR 32768
@ -72,4 +72,4 @@ extern "C" {
typedef uint8_t radio_packet_length_t; typedef uint8_t radio_packet_length_t;
/** @} */ /** @} */
#endif // _WSN_BOARD_H #endif /* WSN_BOARD_H_ */

View File

@ -25,8 +25,8 @@
* @brief Architecture specific definitions for multiboot enabled kernels * @brief Architecture specific definitions for multiboot enabled kernels
*/ */
#ifndef MULTIBOOT_H #ifndef MULTIBOOT_H_
#define MULTIBOOT_H #define MULTIBOOT_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -134,5 +134,5 @@ enum multiboot_info_flags {
} }
#endif #endif
#endif /* MULTIBOOT_H */ #endif /* MULTIBOOT_H_ */
/** @} */ /** @} */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __BOARD_H #ifndef BOARD_H_
#define __BOARD_H #define BOARD_H_
#include "cpu.h" #include "cpu.h"
@ -72,5 +72,5 @@ void board_init(void);
} }
#endif #endif
#endif /** __BOARD_H */ #endif /* BOARD_H_ */
/** @} */ /** @} */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define __PERIPH_CONF_H #define PERIPH_CONF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -142,4 +142,4 @@ extern "C" {
} }
#endif #endif
#endif /* __PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */

View File

@ -6,8 +6,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef BOARD_CONF_H #ifndef BOARD_CONF_H_
#define BOARD_CONF_H #define BOARD_CONF_H_
/** /**
* @ingroup boards_z1 * @ingroup boards_z1

View File

@ -7,8 +7,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef _Z1_BOARD_H #ifndef Z1_BOARD_H_
#define _Z1_BOARD_H #define Z1_BOARD_H_
/** /**
* @defgroup boards_z1 Zolertia Z1 * @defgroup boards_z1 Zolertia Z1
@ -40,7 +40,7 @@ extern "C" {
#define __MSP430F2617__ #define __MSP430F2617__
#endif #endif
// MSP430 core /* MSP430 core */
#define MSP430_INITIAL_CPU_SPEED 8000000uL #define MSP430_INITIAL_CPU_SPEED 8000000uL
#ifndef F_CPU #ifndef F_CPU
#define F_CPU MSP430_INITIAL_CPU_SPEED #define F_CPU MSP430_INITIAL_CPU_SPEED
@ -49,7 +49,7 @@ extern "C" {
#define MSP430_HAS_DCOR 0 #define MSP430_HAS_DCOR 0
#define MSP430_HAS_EXTERNAL_CRYSTAL 1 #define MSP430_HAS_EXTERNAL_CRYSTAL 1
// LEDs ports /* LEDs ports */
#define LEDS_PxDIR P5DIR #define LEDS_PxDIR P5DIR
#define LEDS_PxOUT P5OUT #define LEDS_PxOUT P5OUT
#define LEDS_CONF_RED 0x10 #define LEDS_CONF_RED 0x10
@ -69,7 +69,7 @@ extern "C" {
#define LED_BLUE_TOGGLE LEDS_PxOUT ^= LEDS_CONF_BLUE #define LED_BLUE_TOGGLE LEDS_PxOUT ^= LEDS_CONF_BLUE
// User-button port /* User-button port */
#define USER_BTN_PxIN P2IN #define USER_BTN_PxIN P2IN
#define USER_BTN_MASK 0x20 #define USER_BTN_MASK 0x20
@ -83,4 +83,4 @@ typedef uint8_t radio_packet_length_t;
#endif #endif
/** @} */ /** @} */
#endif // _Z1_BOARD_H #endif /* Z1_BOARD_H_ */

View File

@ -16,9 +16,9 @@
* @author Oliver Hahm <oliver.hahm@inria.fr> * @author Oliver Hahm <oliver.hahm@inria.fr>
*/ */
#ifndef PERIPH_CONF_H #ifndef PERIPH_CONF_H_
#define PERIPH_CONF_H #define PERIPH_CONF_H_
/* make Travis happy: #ifdef __cplusplus extern "C" { #endif */ /* make Travis happy: #ifdef __cplusplus extern "C" { #endif */
#endif /* PERIPH_CONF_H */ #endif /* PERIPH_CONF_H_ */