Skip to content

Commit

Permalink
Update hal_lld.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy committed Jul 4, 2023
1 parent 28d226b commit d8deed7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion os/hal/ports/WB32/WB32F3G71xx/hal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ void SystemCoreClockUpdate(void) {
* @return None
*/
static void SetSysClock(void) {
__IO uint32_t StartUpCounter = 0, HSEStatus = 0;

/* Unlocks write to ANCTL registers */
PWR->ANAKEY1 = 0x03;
Expand All @@ -135,6 +134,8 @@ static void SetSysClock(void) {
#endif /* WB32_PPRE1 == 1 */

#if WB32_HSE_ENABLED == TRUE
__IO uint32_t StartUpCounter = 0, HSEStatus = 0;

/* Configure PD0 and PD1 to analog mode */
RCC->APB1ENR = RCC_APB1ENR_BMX1EN | RCC_APB1ENR_GPIODEN;

Expand Down
3 changes: 2 additions & 1 deletion os/hal/ports/WB32/WB32FQ95xx/hal_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ void SystemCoreClockUpdate(void) {
* @return None
*/
static void SetSysClock(void) {
__IO uint32_t StartUpCounter = 0, HSEStatus = 0;

/* Unlocks write to ANCTL registers */
PWR->ANAKEY1 = 0x03;
Expand All @@ -135,6 +134,8 @@ static void SetSysClock(void) {
#endif /* WB32_PPRE1 == 1 */

#if WB32_HSE_ENABLED == TRUE
__IO uint32_t StartUpCounter = 0, HSEStatus = 0;

/* Configure PD0 and PD1 to analog mode */
RCC->APB1ENR = RCC_APB1ENR_BMX1EN | RCC_APB1ENR_GPIODEN;

Expand Down

0 comments on commit d8deed7

Please sign in to comment.