Update flash routines

Support setting HSI to multiple speeds, but do it in a way that doesn't waste bytes.
Remove dead code.
This commit is contained in:
true
2023-10-21 16:44:31 -07:00
parent 79a52374de
commit 859c04f782
2 changed files with 51 additions and 50 deletions

View File

@@ -9,9 +9,13 @@
void flash_optr_checkfix();
#define FLASH_HSI_4MHz (uint32_t *)0x1FFF0F1C
#define FLASH_HSI_8MHz (uint32_t *)0x1FFF0F30
#define FLASH_HSI_16MHz (uint32_t *)0x1FFF0F44
#define FLASH_HSI_22_12MHz (uint32_t *)0x1FFF0F58
#define FLASH_HSI_24MHz (uint32_t *)0x1FFF0F6C
void flash_optr_set();
void flash_init();