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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user