This commit is contained in:
TuxMonkey
2025-11-15 16:27:25 +08:00
parent b98674ac3f
commit 1a0484b332

View File

@@ -33,7 +33,7 @@
/* USER CODE BEGIN Includes */
#include "buzzer.h"
#include "delayticks.h"
#include "ws2812status.h"
/* USER CODE END Includes */
@@ -60,8 +60,11 @@
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MPU_Config(void);
void MX_FREERTOS_Init(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
@@ -131,6 +134,7 @@ int main(void)
MX_SPI6_Init();
/* USER CODE BEGIN 2 */
systemstart_song();
/* USER CODE END 2 */
/* Init scheduler */
@@ -170,7 +174,9 @@ void SystemClock_Config(void)
*/
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0);
while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
while (!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY))
{
}
/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.