mirror of
https://github.com/satoshinm/pill_6502.git
synced 2025-01-14 12:33:40 +00:00
Revert "Change to use USB interrupts"
This reverts commit 09add1f057a392913c1c9c55ce1bc5457aa021bd.
This commit is contained in:
parent
554bdf33ce
commit
e82d86aa25
@ -187,10 +187,6 @@ void write6502(uint16_t address, uint8_t value) {
|
||||
|
||||
}
|
||||
|
||||
void usb_lp_can_rx0_isr(void) {
|
||||
usbd_poll(usbd_dev);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
setup_clock();
|
||||
@ -202,12 +198,11 @@ int main(void)
|
||||
usbd_register_set_config_callback(usbd_dev, usb_set_config);
|
||||
usbd_register_reset_callback(usbd_dev, usb_reset);
|
||||
|
||||
nvic_set_priority(NVIC_USB_LP_CAN_RX0_IRQ, 2 << 4);
|
||||
nvic_enable_irq(NVIC_USB_LP_CAN_RX0_IRQ);
|
||||
|
||||
reset6502();
|
||||
|
||||
while (1) {
|
||||
usbd_poll(usbd_dev);
|
||||
|
||||
if (!paused) {
|
||||
step6502();
|
||||
gpio_toggle(GPIOC, GPIO13);
|
||||
|
Loading…
x
Reference in New Issue
Block a user