9 #ifndef HEIVS_BSP_STM32F4_DISCOVERY_H
10 #define HEIVS_BSP_STM32F4_DISCOVERY_H
13 #include "stm32/usb/usb_core.h"
15 #define BSP_PWM_LED_STEPS 255
17 #ifndef BOARD_STM32F4_DISCOVERY
18 #error this file should not be included by hand
21 #define BSP_BOARD_PRETTY_NAME "STM32F4 discovery"
24 #define BSP_BUTTON_NR 1
26 #define BSP_I2C_BUS_COUNT 1
27 #define BSP_I2C_BUS0_CTRL I2C1
28 #define BSP_I2C_BUS0_GPIO_SCL GPIO_I2C1_SCL_PB8
29 #define BSP_I2C_BUS0_GPIO_SDA GPIO_I2C1_SDA_PB9
31 #define BSP_SPI_BUS_COUNT 1
32 #define BSP_SPI_BUS0_CTRL SPI1
33 #define BSP_SPI_BUS0_GPIO_MISO GPIO_SPI1_MISO_PA6
34 #define BSP_SPI_BUS0_GPIO_MOSI GPIO_SPI1_MOSI_PA7
35 #define BSP_SPI_BUS0_GPIO_SCK GPIO_SPI1_SCK_PA5
36 #define BSP_SPI_BUS0_GPIO_CS DEF_GPIOE(3, GPIO_OUTPUT_1 | GPIO_SPEED_100)
38 #define BSP_USART_BUS_COUNT 1
39 #define BSP_USART_BUS0_CTRL USART2
40 #define BSP_USART_BUS0_GPIO_TX GPIO_USART2_TX_PA2
41 #define BSP_USART_BUS0_GPIO_RX GPIO_USART2_RX_PA3
43 #define BSP_USART_BUS0_SPEED 115200
46 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
51 void USB_OTG_BSP_DriveVBUS(USB_OTG_CORE_HANDLE *pdev, uint8_t state);
52 void USB_OTG_BSP_ConfigVBUS(USB_OTG_CORE_HANDLE *pdev);
void bsp_lcd_backlight_set(uint32_t value)
Set the brightness of the backlight.
libheivs configuration file