All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Inria
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 BACKLIGHT_PIN GPIO_PIN(PORT_K, 3)
35 #define BACKLIGHT_MASK (1 << 3)
38 #define BACKLIGHT_ON (GPIOK->BSRR = BACKLIGHT_MASK)
40 #define BACKLIGHT_OFF (GPIOK->BSRR = (BACKLIGHT_MASK << 16))
42 #define BACKLIGHT_TOGGLE (GPIOK->ODR ^= BACKLIGHT_MASK)
49 #define LCD_DISP_PIN GPIO_PIN(PORT_I, 12)
56 #define LCD_SCREEN_WIDTH 480
57 #define LCD_SCREEN_HEIGHT 272
64 #define LED0_PIN_NUM 1
65 #define LED0_PORT GPIO_PORT_I
66 #define LED0_PORT_NUM PORT_I
73 #define BTN0_PIN GPIO_PIN(PORT_I, 11)
74 #define BTN0_MODE GPIO_IN
81 #define FT5X06_PARAM_I2C_DEV I2C_DEV(1)
82 #define FT5X06_PARAM_INT_PIN GPIO_PIN(PORT_I, 13)
83 #define FT5X06_PARAM_XMAX LCD_SCREEN_WIDTH
84 #define FT5X06_PARAM_YMAX LCD_SCREEN_HEIGHT
85 #define FT5X06_PARAM_XYCONV FT5X06_SWAP_XY
86 #define FT5X06_PARAM_TYPE FT5X06_TYPE_FT5336
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #include "stm32_leds.h"
94 
95 #endif /* BOARD_H */
Peripheral MCU configuration for the Zigduino board.
Common LED macros.