这样修改之后stm32f429可以自动收到一个reset中断

This commit is contained in:
2025-09-20 14:38:45 +08:00
parent 8a1d7f9512
commit 6f4c32755b
3 changed files with 133 additions and 108 deletions

View File

@@ -48,11 +48,17 @@ extern "C" {
#elif CFG_TUSB_MCU == OPT_MCU_STM32F4
#include "stm32f4xx.h"
#define EP_MAX_FS 4
#define EP_FIFO_SIZE_FS 256
#define EP_MAX_FS 5
#define EP_FIFO_SIZE_FS 0x1000
#define EP_MAX_HS 4
#define EP_FIFO_SIZE_HS 256
#define EP_MAX_HS 5
#define EP_FIFO_SIZE_HS 0x1000
// #define USB_OTG_HS_BASE_ADDR 0x40040000
// #define USB_OTG_FS_BASE_ADDR 0x50000000
#define USB_OTG_HS_PERIPH_BASE 0x40040000
#define USB_OTG_FS_PERIPH_BASE 0x50000000
#elif CFG_TUSB_MCU == OPT_MCU_STM32H7
#include "stm32h7xx.h"