avr: added functions to change speed.

Main code might work at 8 MHz, but boot code is compiled for 1 MHz,
so we need to set speed accordingly when rebooting into boot loader.
This commit is contained in:
Martin Preuss
2024-09-13 21:41:38 +02:00
parent 2d09e22ec6
commit 7a5900be25
6 changed files with 111 additions and 18 deletions

View File

@@ -46,6 +46,7 @@ cproHandleReboot_loop1:
; directly call bootloader
cli
rcall systemSetBootSpeed ; reset speed if necessary (TODO: let bootloader set its speed)
rjmp BOOTLOADER_ADDR
cproHandleReboot_notHandled:
clc