Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 UC Berkeley
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
21
#ifndef BOARD_H
22
#define BOARD_H
23
24
#include "cpu.h"
25
#include "
periph_conf.h
"
26
#include "periph_cpu.h"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
36
#define XTIMER_DEV TIMER_DEV(1)
37
#define XTIMER_CHAN (0)
44
#define AT86RF2XX_PARAM_SPI SPI_DEV(0)
45
#define AT86RF2XX_PARAM_SPI_CLK SPI_CLK_5MHZ
46
#define AT86RF2XX_PARAM_CS GPIO_PIN(PB, 31)
47
#define AT86RF2XX_PARAM_INT GPIO_PIN(PB, 0)
48
#define AT86RF2XX_PARAM_SLEEP GPIO_PIN(PA, 20)
49
#define AT86RF2XX_PARAM_RESET GPIO_PIN(PB, 15)
56
#define LED0_PIN GPIO_PIN(0, 19)
57
58
#define LED0_PORT PORT->Group[0]
59
#define LED0_MASK (1 << 19)
60
61
#define LED0_ON (LED0_PORT.OUTCLR.reg = LED0_MASK)
62
#define LED0_OFF (LED0_PORT.OUTSET.reg = LED0_MASK)
63
#define LED0_TOGGLE (LED0_PORT.OUTTGL.reg = LED0_MASK)
70
#define BTN0_PIN GPIO_PIN(0, 18)
71
#define BTN0_MODE GPIO_IN_PU
80
#define FXOS8700_PARAM_I2C I2C_DEV(0)
81
#define FXOS8700_PARAM_ADDR (0x1E)
82
#define FXOS8700_PARAM_RENEW_INTERVAL (1000000ul)
89
#define HDC1000_PARAM_I2C I2C_DEV(0)
90
#define HDC1000_PARAM_ADDR (0x40)
91
#define HDC1000_PARAM_RES HDC1000_14BIT
92
#define HDC1000_PARAM_RENEW_INTERVAL (1000000ul)
99
#define PIR_PARAM_GPIO GPIO_PIN(PA, 6)
100
#define PIR_PARAM_ACTIVE_HIGH (1)
107
#define PULSE_COUNTER_GPIO BTN0_PIN
108
#define PULSE_COUNTER_GPIO_FLANK GPIO_FALLING
117
#define TMP00X_PARAM_I2C I2C_DEV(0)
118
#define TMP00X_PARAM_ADDR (0x44)
119
#define TMP00X_PARAM_RATE TMP00X_CONFIG_CR_AS2
128
#ifdef __cplusplus
129
}
130
#endif
131
132
#endif
/* BOARD_H */
periph_conf.h
Native CPU peripheral configuration.
Generated on Fri Apr 19 2024 10:16:35 by
1.9.8