mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
Fix stm32h573i_dk button & led.
This commit is contained in:
parent
0d4465a098
commit
3ecabe3ebe
@ -35,12 +35,12 @@ extern "C" {
|
|||||||
// LED
|
// LED
|
||||||
#define LED_PORT GPIOI
|
#define LED_PORT GPIOI
|
||||||
#define LED_PIN GPIO_PIN_9
|
#define LED_PIN GPIO_PIN_9
|
||||||
#define LED_STATE_ON 0
|
#define LED_STATE_ON 1
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
#define BUTTON_PORT GPIOC
|
#define BUTTON_PORT GPIOC
|
||||||
#define BUTTON_PIN GPIO_PIN_13
|
#define BUTTON_PIN GPIO_PIN_13
|
||||||
#define BUTTON_STATE_ACTIVE 0
|
#define BUTTON_STATE_ACTIVE 1
|
||||||
|
|
||||||
// UART Enable for STLink VCOM
|
// UART Enable for STLink VCOM
|
||||||
#define UART_DEV USART1
|
#define UART_DEV USART1
|
||||||
|
@ -73,10 +73,10 @@ void board_init(void) {
|
|||||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
#endif
|
#endif
|
||||||
#ifdef __HAL_RCC_GPIOG_CLK_ENABLE
|
#ifdef __HAL_RCC_GPIOG_CLK_ENABLE
|
||||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
#endif
|
#endif
|
||||||
#ifdef __HAL_RCC_GPIOI_CLK_ENABLE
|
#ifdef __HAL_RCC_GPIOI_CLK_ENABLE
|
||||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
__HAL_RCC_GPIOI_CLK_ENABLE();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UART_CLK_EN();
|
UART_CLK_EN();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user