chore: disable USB_OTG_HS in CubeMX, remove USB device library

- Remove USB_OTG_HS peripheral and all USB Device Library files
- Remove USB_DEVICE application (usb_device, usbd_cdc_if, usbd_desc, usbd_conf)
- Remove HAL PCD/LL USB driver files
- Update generated files (main.c, freertos.c, stm32h7xx_it.c, hal_conf.h, CMakeLists)
This commit is contained in:
2026-05-30 21:06:58 +08:00
parent 8763b25839
commit 5e662f8458
31 changed files with 42 additions and 12877 deletions
+1 -4
View File
@@ -28,7 +28,6 @@
#include "spi.h"
#include "tim.h"
#include "usart.h"
#include "usb_device.h"
#include "gpio.h"
/* Private includes ----------------------------------------------------------*/
@@ -174,12 +173,10 @@ void SystemClock_Config(void)
/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSI
|RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
RCC_OscInitStruct.HSIState = RCC_HSI_DIV1;
RCC_OscInitStruct.HSICalibrationValue = 64;
RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 2;