Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014-2015 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser General
5
* Public License v2.1. See the file LICENSE in the top level directory for more
6
* details.
7
*/
8
22
#ifndef BOARD_H
23
#define BOARD_H
24
25
#include <stdint.h>
26
27
#include "cpu.h"
28
#include "
periph_conf.h
"
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
40
#define XTIMER_WIDTH (16)
41
49
#define AT86RF2XX_PARAM_CS GPIO_PIN(PORT_A, 1)
50
#define AT86RF2XX_PARAM_INT GPIO_PIN(PORT_C, 2)
51
#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PORT_A, 0)
52
#define AT86RF2XX_PARAM_RESET GPIO_PIN(PORT_C, 1)
53
59
#define LPSXXX_PARAM_ADDR (0x5C)
60
66
#define L3G4200D_PARAM_INT2 GPIO_PIN(PORT_B, 8)
67
#define L3G4200D_PARAM_INT1 GPIO_PIN(PORT_B, 11)
68
74
#define LSM303DLHC_PARAM_ACC_ADDR (0x25)
75
#define LSM303DLHC_PARAM_MAG_ADDR (0x30)
76
#define LSM303DLHC_PARAM_ACC_PIN GPIO_PIN(PORT_B, 9)
77
#define LSM303DLHC_PARAM_MAG_PIN GPIO_PIN(PORT_A, 9)
78
84
#define LED0_PIN GPIO_PIN(PORT_B, 10)
85
#define LED1_PIN GPIO_PIN(PORT_B, 12)
86
87
#define LED0_MASK (1 << 10)
88
#define LED1_MASK (1 << 12)
89
90
#define LED0_ON (GPIOB->ODR &= ~LED0_MASK)
91
#define LED0_OFF (GPIOB->ODR |= LED0_MASK)
92
#define LED0_TOGGLE (GPIOB->ODR ^= LED0_MASK)
93
94
#define LED1_ON (GPIOB->ODR &= ~LED1_MASK)
95
#define LED1_OFF (GPIOB->ODR |= LED1_MASK)
96
#define LED1_TOGGLE (GPIOB->ODR ^= LED1_MASK)
97
102
void
board_init
(
void
);
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
/* BOARD_H */
109
periph_conf.h
Peripheral MCU configuration for the fox board.
board_init
void board_init(void)
Board level initialization.
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17