Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "cpu.h"
19
#include "
periph/gpio.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define LED0_PIN GPIO_PIN(PA, 23)
31
#define LED_PORT PORT->Group[PA]
32
#define LED0_MASK (1 << 23)
34
#define LED0_ON (LED_PORT.OUTSET.reg = LED0_MASK)
35
#define LED0_OFF (LED_PORT.OUTCLR.reg = LED0_MASK)
36
#define LED0_TOGGLE (LED_PORT.OUTTGL.reg = LED0_MASK)
38
#define LED0_NAME "LED(Red)"
45
#define BUTTON_LATCH GPIO_PIN(PB, 0)
46
#define BUTTON_CLK GPIO_PIN(PB, 31)
47
#define BUTTON_OUT GPIO_PIN(PB, 30)
54
#define BACKLIGHT_PIN GPIO_PIN(PA, 1)
55
#define BACKLIGHT_PORT PORT->Group[PA]
56
#define BACKLIGHT_MASK (1 << 1)
57
#define BACKLIGHT_ON (BACKLIGHT_PORT.OUTSET.reg = BACKLIGHT_MASK)
58
#define BACKLIGHT_OFF (BACKLIGHT_PORT.OUTCLR.reg = BACKLIGHT_MASK)
65
#define ST77XX_PARAM_CNTRL ST77XX_CNTRL_ST7735
66
#define ST77XX_PARAM_SPI SPI_DEV(1)
67
#define ST77XX_PARAM_CS GPIO_PIN(PB, 7)
68
#define ST77XX_PARAM_DCX GPIO_PIN(PB, 5)
69
#define ST77XX_PARAM_RST GPIO_PIN(PA, 0)
70
#define ST77XX_PARAM_NUM_LINES (160U)
71
#define ST77XX_PARAM_RGB_CHANNELS (128U)
72
#define ST77XX_PARAM_RGB (1)
73
#define ST77XX_PARAM_INVERTED (0)
74
#define ST77XX_PARAM_ROTATION ST77XX_ROTATION_90
75
#define LCD_SCREEN_WIDTH (ST77XX_PARAM_NUM_LINES)
76
#define LCD_SCREEN_HEIGHT (ST77XX_PARAM_RGB_CHANNELS)
83
#define WS281X_PARAM_PIN (GPIO_PIN(PA, 15))
84
#define WS281X_PARAM_NUMOF (5U)
91
#define SPEAKER_ENABLE_PIN GPIO_PIN(PA, 27)
92
#define SPEAKER_PIN GPIO_PIN(PA, 2)
99
#define MTD_0 mtd_dev_get(0)
106
#define XTIMER_WIDTH (32)
107
#define XTIMER_HZ (1000000ul)
110
#ifdef __cplusplus
111
}
112
#endif
113
gpio.h
Low-level GPIO peripheral driver interface definitions.
Generated on Thu Jul 24 2025 16:03:56 by
1.9.1