tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.99k stars 1.71k forks source link

Bootloader jump for ATMega32u2 #629

Closed tmk closed 2 years ago

tmk commented 5 years ago

It needs code to initialize registers for ATMega32u2.

https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/avr/bootloader.c#L142-L162

tmk commented 2 years ago

Watchdog timer reset is used to run bootloader and it makes registers initialized now. Controrller specific initialization codes is no longer needed.

https://github.com/tmk/tmk_keyboard/blob/37a452f7c96871e1ca166dc29f7692e1334f4b06/tmk_core/common/avr/bootloader.c#L113-L131