HAL_RTC_MspInit
时间: 2023-08-20 10:07:52 浏览: 138
HAL_RTC_MspInit是一个函数,用于初始化RTC(实时时钟)模块。它的实现非常简单,通过调用__HAL_RCC_RTC_ENABLE()函数来使能RTC时钟,并设置RTC中断的优先级和使能RTC中断。\[1\]在某些情况下,可能会出现HAL_RTC_MspInit函数的命名错误,例如在rtc.c文件中调用了错误的函数名HAL_RTC_MspInit(RTC_HandleTypeDef* rtcHandle)。正确的函数名应该是HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc)。\[2\]在ST的Discovery开发的源代码中,有些函数带有Msp字段,Msp代表MCU Specific Package,表示这些函数是与特定的MCU相关的包。\[3\]
#### 引用[.reference_title]
- *1* [STM32开发笔记76: 初始化RTC后死机的原因](https://blog.csdn.net/qingwufeiyang12346/article/details/95537782)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [STM32CubeMX配置STM32F103-RTC遇到的问题](https://blog.csdn.net/qq_33098417/article/details/81096559)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [HAL_RTC_MspInit Msp指代什么?](https://blog.csdn.net/weixin_34090643/article/details/93940833)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文