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:
committed by
Piotr Esden-Tempski
parent
ee418f1780
commit
cdd8f2adac
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user