Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cpu.h"
19#include "periph_conf.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29#define CC110X_PARAM_SPI SPI_DEV(0)
30#define CC110X_PARAM_CS GPIO_PIN(PORT_B, 12)
31#define CC110X_PARAM_GDO0 GPIO_PIN(PORT_C, 4)
32#define CC110X_PARAM_GDO2 GPIO_PIN(PORT_C, 5)
33#define CC110X_PARAM_SPI_CLOCK SPI_CLK_1MHZ
35
40#define MPU9X50_PARAM_COMP_ADDR (0x0E)
42
47#define LED0_PIN_NUM 8
48#define LED0_PORT GPIO_PORT_B
49#define LED0_PORT_NUM PORT_B
50
51#define LED1_PIN_NUM 14
52#define LED1_PORT GPIO_PORT_B
53#define LED1_PORT_NUM PORT_B
54
55#define LED2_PIN_NUM 15
56#define LED2_PORT GPIO_PORT_B
57#define LED2_PORT_NUM PORT_B
59
64#define BUTTON0_PIN GPIO_PIN(PORT_B, 13)
65#define BUTTON1_PIN GPIO_PIN(PORT_A, 0)
67
68#ifdef __cplusplus
69}
70#endif
71
72#include "stm32_leds.h"
73
Common LED macros.