Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions os/hal/include/hal_fsmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
defined(STM32F745xx) || defined(STM32F746xx) || \
defined(STM32F756xx) || defined(STM32F767xx) || \
defined(STM32F769xx) || defined(STM32F777xx) || \
defined(STM32F779xx) || defined(STM32H743xx))
defined(STM32F779xx) || defined(STM32H743xx) || \
defined(STM32G473xx) || defined(STM32G483xx) || \
defined(STM32G474xx) || defined(STM32G484xx))
#if !defined(FSMC_Bank1_R_BASE)
#define FSMC_Bank1_R_BASE (FMC_R_BASE + 0x0000)
#endif
Expand Down Expand Up @@ -239,7 +241,9 @@ typedef struct {
#define FSMC_BCR_CBURSTRW ((uint32_t)1 << 19)
#if (defined(STM32F427xx) || defined(STM32F437xx) || \
defined(STM32F429xx) || defined(STM32F439xx) || \
defined(STM32F7) || defined(STM32H743xx))
defined(STM32F7) || defined(STM32H743xx) || \
defined(STM32G473xx) || defined(STM32G483xx) || \
defined(STM32G474xx) || defined(STM32G484xx))
#define FSMC_BCR_CCLKEN ((uint32_t)1 << 20)
#endif
#if (defined(STM32F7))
Expand Down
5 changes: 3 additions & 2 deletions os/hal/ports/STM32/LLD/FSMCv1/hal_sram_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void sram_lld_stop(SRAMDriver *sramp) {
defined(STM32F745xx) || defined(STM32F746xx) || \
defined(STM32F756xx) || defined(STM32F767xx) || \
defined(STM32F769xx) || defined(STM32F777xx) || \
defined(STM32F779xx))
defined(STM32F779xx) || defined(STM32G473xx) || \
defined(STM32G483xx) || defined(STM32G474xx) || \
defined(STM32G484xx))
mask |= FSMC_BCR_CCLKEN;
#endif
sramp->sram->BCR &= ~mask;
Expand All @@ -121,4 +123,3 @@ void sram_lld_stop(SRAMDriver *sramp) {
#endif /* STM32_SRAM_USE_SRAM */

/** @} */