micro-optimizations in startup assembly code

This commit is contained in:
R
2024-04-14 04:08:13 +01:00
parent 394046a4b1
commit 8feb1d2ea8
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -296,9 +296,6 @@ __attribute__((always_inline)) static inline void synthesize_block(uint32_t bloc
}
__attribute__((naked)) int main(void) {
// Don't reenter bootloader again
R16_BKP_DATAR10 = 0;
// PLL setup: system clock 96 MHz
R32_EXTEN_CTR |= (1 << 4); // sneaky div2
R32_RCC_CFGR0 = (R32_RCC_CFGR0 & ~0xff0000) | (0b01101000 << 16);