mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-11-22 06:32:23 +00:00
Jump to correct bootloader address based on whether it's a 64x or 128x
This commit is contained in:
parent
a7fe6d9b39
commit
88e8f47bde
@ -57,8 +57,16 @@ static inline void Board_EnterBootloader(void)
|
||||
// close the port after the USB disconnect
|
||||
DelayMS(2000);
|
||||
|
||||
// And, of course, go into the bootloader.
|
||||
__asm__ __volatile__ ( "jmp 0xE000" );
|
||||
// Jump to the correct bootloader address based on whether this is an
|
||||
// AT90USB128x or AT90USB64x
|
||||
if (IsAT90USB128x())
|
||||
{
|
||||
__asm__ __volatile__ ( "jmp 0x1E000" );
|
||||
}
|
||||
else
|
||||
{
|
||||
__asm__ __volatile__ ( "jmp 0xE000" );
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* HAL_AT90USB646_BOARD_HW_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user