备忘
有时候临时调一个外设做实验需要快速搭建工程的时候,老忘记配置的数据

再补一段代码格式的
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {
0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {
0};
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {
0};
/** Supply configuration update enable
*/
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
/** Configure the main internal regulator output voltage
*/
1519





被折叠的 条评论
为什么被折叠?



