BREAKING: stm32f0/f1: standardize flash_prefetch_xx

use the same API on all families, flash_prefetch_{enable,disable}()
This commit is contained in:
Karl Palsson
2018-05-01 12:04:28 +00:00
parent 389ec82538
commit ef44bdd09e
3 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ the power-on low frequency mode before being set to a higher speed mode.
See the reference manual for details.
*/
void flash_prefetch_buffer_enable(void)
void flash_prefetch_enable(void)
{
FLASH_ACR |= FLASH_ACR_PRFTBE;
}
@@ -49,7 +49,7 @@ Note carefully the clock restrictions under which the prefetch buffer may be
set to disabled. See the reference manual for details.
*/
void flash_prefetch_buffer_disable(void)
void flash_prefetch_disable(void)
{
FLASH_ACR &= ~FLASH_ACR_PRFTBE;
}