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) 2020 iosabi
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
19
#ifndef BOARD_H
20
#define BOARD_H
21
22
#include "cpu.h"
23
#include "
periph_conf.h
"
24
#include "periph_cpu.h"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#define LED_RED_PIN GPIO_PIN(PORT_A, 31)
35
#define LED_GREEN_PIN GPIO_PIN(PORT_A, 25)
36
#define LED_BLUE_PIN GPIO_PIN(PORT_A, 13)
43
#define BTN1_PIN GPIO_PIN(PORT_A, 24)
44
#define BTN1_MODE GPIO_IN_PU
45
#define BTN2_PIN GPIO_PIN(PORT_A, 19)
46
#define BTN2_MODE GPIO_IN_PU
56
#define MMA8X5X_PARAM_I2C I2C_DEV(0)
57
#define MMA8X5X_PARAM_ADDR 0x1D
58
#define MMA8X5X_PARAM_TYPE (MMA8X5X_TYPE_MMA8652)
65
#define MTD_0 mtd_dev_get(0)
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* BOARD_H */
periph_conf.h
Native CPU peripheral configuration.
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8