Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 iosabi
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#include "periph_cpu.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30#define LED_RED_PIN GPIO_PIN(PORT_A, 31)
31#define LED_GREEN_PIN GPIO_PIN(PORT_A, 25)
32#define LED_BLUE_PIN GPIO_PIN(PORT_A, 13)
34
39#define BTN1_PIN GPIO_PIN(PORT_A, 24)
40#define BTN1_MODE GPIO_IN_PU
41#define BTN2_PIN GPIO_PIN(PORT_A, 19)
42#define BTN2_MODE GPIO_IN_PU
44
52#define MMA8X5X_PARAM_I2C I2C_DEV(0)
53#define MMA8X5X_PARAM_ADDR 0x1D
54#define MMA8X5X_PARAM_TYPE (MMA8X5X_TYPE_MMA8652)
56
61#define MTD_0 mtd_dev_get(0)
63
64#ifdef __cplusplus
65}
66#endif
67
Configuration of CPU peripherals for QN9080DK base board board.