stm32/h7: Implemented support for the Flash controller having untangled the previous pretending it was the F2/F4 controller mess

This commit is contained in:
dragonmux
2024-04-15 12:18:05 +01:00
committed by Piotr Esden-Tempski
parent ee418f1780
commit cdd8f2adac
5 changed files with 583 additions and 12 deletions

View File

@@ -23,6 +23,7 @@
#include <libopencm3/stm32/flash.h>
#if !defined(STM32H7)
void flash_prefetch_enable(void)
{
FLASH_ACR |= FLASH_ACR_PRFTEN;
@@ -32,6 +33,7 @@ void flash_prefetch_disable(void)
{
FLASH_ACR &= ~FLASH_ACR_PRFTEN;
}
#endif
void flash_set_ws(uint32_t ws)
{