Skip to content

Commit

Permalink
platform/technic_hub: don't zero clk_init
Browse files Browse the repository at this point in the history
We are initialling all fields, so this doesn't do anything useful.
  • Loading branch information
dlech committed Feb 2, 2021
1 parent 8e54d30 commit 2bb577f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pbio/platform/technic_hub/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void SystemInit(void) {

HAL_RCC_OscConfig(&osc_init);

RCC_ClkInitTypeDef clk_init = { 0 };
RCC_ClkInitTypeDef clk_init;
clk_init.ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
clk_init.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
clk_init.AHBCLKDivider = RCC_SYSCLK_DIV1; // HCLK 80MHz
Expand Down

0 comments on commit 2bb577f

Please sign in to comment.