rework #4

Merged
Steins7 merged 88 commits from rework into dev 2024-04-20 18:20:23 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 16fbf892ba - Show all commits

View File

@ -28,7 +28,7 @@ static volatile struct FLASH* regs = (struct FLASH*)FLASH_BASE_ADDRESS;
void flash_configure(enum FlashPreset preset)
{
//restore default configuration
regs->ACR.word &= !0x3f;
regs->ACR.word &= ~0x3f;
regs->ACR.word |= 0x30;
//apply new configuration

View File

@ -94,7 +94,7 @@ static void apply_default_preset(void)
while (regs->CR.HSIRDY != 0x1);
//set HSI as main clock source and disable prescalers
regs->CFGR.word &= !0x077fff3;
regs->CFGR.word &= ~0x077fff3;
//disable all options
regs->CR.HSITRIM = 0x10;