mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-09 18:44:31 +00:00
Initialized all RCC init structs for all STM32H7 BSP variants as empty
This commit is contained in:
parent
3c38c7dc25
commit
787afbbcd0
@ -57,9 +57,9 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
static inline void board_stm32h7_clock_init(void)
|
static inline void board_stm32h7_clock_init(void)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
|
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
|
||||||
|
|
||||||
/*!< Supply configuration update enable */
|
/*!< Supply configuration update enable */
|
||||||
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */
|
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */
|
||||||
|
@ -64,8 +64,8 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
static inline void board_stm32h7_clock_init(void)
|
static inline void board_stm32h7_clock_init(void)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
|
||||||
|
|
||||||
/* The PWR block is always enabled on the H7 series- there is no clock
|
/* The PWR block is always enabled on the H7 series- there is no clock
|
||||||
enable. For now, use the default VOS3 scale mode (lowest) and limit clock
|
enable. For now, use the default VOS3 scale mode (lowest) and limit clock
|
||||||
|
@ -63,9 +63,9 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
static inline void board_stm32h7_clock_init(void)
|
static inline void board_stm32h7_clock_init(void)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
|
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
|
||||||
|
|
||||||
/*!< Supply configuration update enable */
|
/*!< Supply configuration update enable */
|
||||||
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
|
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
|
||||||
|
@ -55,8 +55,8 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
static inline void board_stm32h7_clock_init(void)
|
static inline void board_stm32h7_clock_init(void)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
|
||||||
|
|
||||||
/* The PWR block is always enabled on the H7 series- there is no clock
|
/* The PWR block is always enabled on the H7 series- there is no clock
|
||||||
enable. For now, use the default VOS3 scale mode (lowest) and limit clock
|
enable. For now, use the default VOS3 scale mode (lowest) and limit clock
|
||||||
|
@ -57,9 +57,9 @@
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
static inline void board_stm32h7_clock_init(void)
|
static inline void board_stm32h7_clock_init(void)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
|
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
|
||||||
|
|
||||||
/*!< Supply configuration update enable */
|
/*!< Supply configuration update enable */
|
||||||
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */
|
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user