Loading...
Searching...
No Matches
board.h File Reference

Board specific definitions for the STM32F746G-DISCO. More...

Detailed Description

Board specific definitions for the STM32F746G-DISCO.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file board.h.

#include "cpu.h"
#include "periph_conf.h"
#include "periph_cpu.h"
#include "stm32_leds.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

LCD Backlight control defines

#define BACKLIGHT_PIN   GPIO_PIN(PORT_K, 3)
 Backlight pin.
 
#define BACKLIGHT_MASK   (1 << 3)
 Backlight pin mask.
 
#define BACKLIGHT_ON   (GPIOK->BSRR = BACKLIGHT_MASK)
 Set the backlight pin.
 
#define BACKLIGHT_OFF   (GPIOK->BSRR = (BACKLIGHT_MASK << 16))
 Clear the backlight pin.
 
#define BACKLIGHT_TOGGLE   (GPIOK->ODR ^= BACKLIGHT_MASK)
 Toggle the backlight pin.
 

LCD display enable pin

#define LCD_DISP_PIN   GPIO_PIN(PORT_I, 12)
 LCD screen enable pin.
 

LCD screen dimensions

#define LCD_SCREEN_WIDTH   480
 LCD screen width.
 
#define LCD_SCREEN_HEIGHT   272
 LCD screen height.
 

Macros for controlling the on-board LEDs.

#define LED0_PIN_NUM   1
 LD1 pin number.
 
#define LED0_PORT   GPIO_PORT_I
 GPIO port of LD1.
 
#define LED0_PORT_NUM   PORT_I
 LD1 port.
 

User button

#define BTN0_PIN   GPIO_PIN(PORT_I, 11)
 BTN0 pin.
 
#define BTN0_MODE   GPIO_IN
 BTN0 pin mode.
 

FT5X06 touch panel configuration

#define FT5X06_PARAM_I2C_DEV   I2C_DEV(1)
 I2C device.
 
#define FT5X06_PARAM_INT_PIN   GPIO_PIN(PORT_I, 13)
 Interrupt pin.
 
#define FT5X06_PARAM_XMAX   LCD_SCREEN_WIDTH
 Max width.
 
#define FT5X06_PARAM_YMAX   LCD_SCREEN_HEIGHT
 Max height.
 
#define FT5X06_PARAM_XYCONV   FT5X06_SWAP_XY
 Swap X and Y.
 
#define FT5X06_PARAM_TYPE   FT5X06_TYPE_FT5336
 Device type.
 

Macro Definition Documentation

◆ BACKLIGHT_MASK

#define BACKLIGHT_MASK   (1 << 3)

Backlight pin mask.

Definition at line 35 of file board.h.

◆ BACKLIGHT_OFF

#define BACKLIGHT_OFF   (GPIOK->BSRR = (BACKLIGHT_MASK << 16))

Clear the backlight pin.

Definition at line 40 of file board.h.

◆ BACKLIGHT_ON

#define BACKLIGHT_ON   (GPIOK->BSRR = BACKLIGHT_MASK)

Set the backlight pin.

Definition at line 38 of file board.h.

◆ BACKLIGHT_PIN

#define BACKLIGHT_PIN   GPIO_PIN(PORT_K, 3)

Backlight pin.

Definition at line 34 of file board.h.

◆ BACKLIGHT_TOGGLE

#define BACKLIGHT_TOGGLE   (GPIOK->ODR ^= BACKLIGHT_MASK)

Toggle the backlight pin.

Definition at line 42 of file board.h.

◆ BTN0_MODE

#define BTN0_MODE   GPIO_IN

BTN0 pin mode.

Definition at line 74 of file board.h.

◆ BTN0_PIN

#define BTN0_PIN   GPIO_PIN(PORT_I, 11)

BTN0 pin.

Definition at line 73 of file board.h.

◆ FT5X06_PARAM_I2C_DEV

#define FT5X06_PARAM_I2C_DEV   I2C_DEV(1)

I2C device.

Definition at line 81 of file board.h.

◆ FT5X06_PARAM_INT_PIN

#define FT5X06_PARAM_INT_PIN   GPIO_PIN(PORT_I, 13)

Interrupt pin.

Definition at line 82 of file board.h.

◆ FT5X06_PARAM_TYPE

#define FT5X06_PARAM_TYPE   FT5X06_TYPE_FT5336

Device type.

Definition at line 86 of file board.h.

◆ FT5X06_PARAM_XMAX

#define FT5X06_PARAM_XMAX   LCD_SCREEN_WIDTH

Max width.

Definition at line 83 of file board.h.

◆ FT5X06_PARAM_XYCONV

#define FT5X06_PARAM_XYCONV   FT5X06_SWAP_XY

Swap X and Y.

Definition at line 85 of file board.h.

◆ FT5X06_PARAM_YMAX

#define FT5X06_PARAM_YMAX   LCD_SCREEN_HEIGHT

Max height.

Definition at line 84 of file board.h.

◆ LCD_DISP_PIN

#define LCD_DISP_PIN   GPIO_PIN(PORT_I, 12)

LCD screen enable pin.

Definition at line 49 of file board.h.

◆ LCD_SCREEN_HEIGHT

#define LCD_SCREEN_HEIGHT   272

LCD screen height.

Definition at line 57 of file board.h.

◆ LCD_SCREEN_WIDTH

#define LCD_SCREEN_WIDTH   480

LCD screen width.

Definition at line 56 of file board.h.

◆ LED0_PIN_NUM

#define LED0_PIN_NUM   1

LD1 pin number.

Definition at line 64 of file board.h.

◆ LED0_PORT

#define LED0_PORT   GPIO_PORT_I

GPIO port of LD1.

Definition at line 65 of file board.h.

◆ LED0_PORT_NUM

#define LED0_PORT_NUM   PORT_I

LD1 port.

Definition at line 66 of file board.h.