Skip to content

Commit e02eee7

Browse files
committed
revert board flash latency to 8
1 parent 23f7130 commit e02eee7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hw/bsp/stm32g4/boards/b_g474e_dpow1/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static inline void board_clock_init(void)
8787
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
8888
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
8989
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
90-
HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4);
90+
HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_8);
9191

9292
//------------- HSI48 and CRS for USB -------------//
9393
RCC_OscInitTypeDef osc_hsi48 = {0};

hw/bsp/stm32g4/family.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ void usbpd_init(uint8_t port_num, tusb_typec_port_type_t port_type) {
6262
}
6363

6464
// Enable interrupt
65-
//NVIC_SetPriority(UCPD1_IRQn, 0);
66-
// NVIC_EnableIRQ(UCPD1_IRQn);
65+
NVIC_EnableIRQ(UCPD1_IRQn);
6766
}
6867

6968
uint8_t pd_rx_buf[262];
@@ -253,7 +252,7 @@ void board_init(void)
253252

254253
board_vbus_sense_init();
255254

256-
#if 0
255+
#if 1
257256
// USB PD
258257
/* PWR register access (for disabling dead battery feature) */
259258
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);

0 commit comments

Comments
 (0)