Skip to content

Commit 907d68c

Browse files
committed
libraries/Arduino_H7_Video: Fix the DSI PLL configuration.
With the current configuration (NDIV=125, PLLIDF=3, PLLODF=1) the DSI PLL outputs an out of spec 83MHz clock. This fix sets the output clock to the max supported clock of 62.5MHz, according to the datasheet. Signed-off-by: iabdalkader <[email protected]>
1 parent 7ed8f10 commit 907d68c

File tree

1 file changed

+2
-2
lines changed
  • libraries/Arduino_H7_Video/src

1 file changed

+2
-2
lines changed

Diff for: libraries/Arduino_H7_Video/src/dsi.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void dsi_layerInit(uint16_t LayerIndex, uint32_t FB_Address);
4848
int dsi_init(uint8_t bus, struct edid *edid, struct display_timing *dt) {
4949
#ifdef ARDUINO_GIGA
5050
static const uint32_t DSI_PLLNDIV = 125;
51-
static const uint32_t DSI_PLLIDF = DSI_PLL_IN_DIV3;
51+
static const uint32_t DSI_PLLIDF = DSI_PLL_IN_DIV4;
5252
static const uint32_t DSI_PLLODF = DSI_PLL_OUT_DIV1;
5353
static const uint32_t DSI_TXEXCAPECLOCKDIV = 4;
5454
#undef HSE_VALUE
@@ -412,4 +412,4 @@ extern "C" void HAL_LTDC_ReloadEventCallback(LTDC_HandleTypeDef *hltdc) {
412412
reloadLTDC_status = 1;
413413
}
414414

415-
/**** END OF FILE ****/
415+
/**** END OF FILE ****/

0 commit comments

Comments
 (0)