Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Inria
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 BACKLIGHT_PIN GPIO_PIN(PORT_K, 3)
31#define BACKLIGHT_MASK (1 << 3)
32
34#define BACKLIGHT_ON (GPIOK->BSRR = BACKLIGHT_MASK)
36#define BACKLIGHT_OFF (GPIOK->BSRR = (BACKLIGHT_MASK << 16))
38#define BACKLIGHT_TOGGLE (GPIOK->ODR ^= BACKLIGHT_MASK)
40
45#define LCD_DISP_PIN GPIO_PIN(PORT_I, 12)
47
52#define LCD_SCREEN_WIDTH 480
53#define LCD_SCREEN_HEIGHT 272
55
60#define LED0_PIN_NUM 1
61#define LED0_PORT GPIO_PORT_I
62#define LED0_PORT_NUM PORT_I
64
69#define BTN0_PIN GPIO_PIN(PORT_I, 11)
70#define BTN0_MODE GPIO_IN
72
77#define FT5X06_PARAM_I2C_DEV I2C_DEV(1)
78#define FT5X06_PARAM_INT_PIN GPIO_PIN(PORT_I, 13)
79#define FT5X06_PARAM_XMAX LCD_SCREEN_WIDTH
80#define FT5X06_PARAM_YMAX LCD_SCREEN_HEIGHT
81#define FT5X06_PARAM_XYCONV FT5X06_SWAP_XY
82#define FT5X06_PARAM_TYPE FT5X06_TYPE_FT5336
84
85#ifdef __cplusplus
86}
87#endif
88
89#include "stm32_leds.h"
90
Configuration of CPU peripherals for STM32F746G-DISCO board.
Common LED macros.