diff --git a/os/hal/ports/STM32/LLD/FSMCv1/hal_sdram_lld.c b/os/hal/ports/STM32/LLD/FSMCv1/hal_sdram_lld.c index 8953061378..fb68950ccd 100644 --- a/os/hal/ports/STM32/LLD/FSMCv1/hal_sdram_lld.c +++ b/os/hal/ports/STM32/LLD/FSMCv1/hal_sdram_lld.c @@ -128,7 +128,7 @@ static void sdram_lld_init_sequence(const SDRAMConfig *cfgp) { /* Step 6.2: Send the second command.*/ #if !defined(STM32H743xx) sdram_lld_wait_ready(); -#endif; +#endif SDRAMD1.sdram->SDCMR = FMCCM_AUTO_REFRESH | command_target | (cfgp->sdcmr & FMC_SDCMR_NRFS); diff --git a/os/hal/ports/STM32/LLD/LTDCv1/hal_stm32_ltdc.c b/os/hal/ports/STM32/LLD/LTDCv1/hal_stm32_ltdc.c index e179538395..0c6318407d 100644 --- a/os/hal/ports/STM32/LLD/LTDCv1/hal_stm32_ltdc.c +++ b/os/hal/ports/STM32/LLD/LTDCv1/hal_stm32_ltdc.c @@ -809,8 +809,11 @@ void ltdcEnableDitheringI(LTDCDriver *ltdcp) { osalDbgCheckClassI(); osalDbgCheck(ltdcp == <DCD1); (void)ltdcp; - +#if defined(STM32H743xx) + LTDC->GCR |= LTDC_GCR_DEN; +#else LTDC->GCR |= LTDC_GCR_DTEN; +#endif } /**