firmware: Set stack pointer to a correct value

This commit is contained in:
Ondrej Jirman 2021-08-05 02:51:51 +02:00
parent bd58af96d2
commit b244ab9c9f

View file

@ -1847,8 +1847,12 @@ static void usb_disable(void)
// }}}
extern uint8_t _start__stack[];
void main(void)
{
SP = (uint8_t)_start__stack;
PAGESW = 0;
// setup interrupts