samd21,samd51,nrf52840: unify bootloader entry process

This commit is contained in:
sago35
2022-07-05 22:28:13 +09:00
committed by Ron Evans
parent ff7c71c99c
commit fcefcb191c
9 changed files with 60 additions and 69 deletions
+2 -2
View File
@@ -1734,9 +1734,9 @@ func (tcc *TCC) Set(channel uint8, value uint32) {
}
}
// ResetProcessor should perform a system reset in preperation
// EnterBootloader should perform a system reset in preperation
// to switch to the bootloader to flash new firmware.
func ResetProcessor() {
func EnterBootloader() {
arm.DisableInterrupts()
// Perform magic reset into bootloader, as mentioned in