1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-21 16:45:08 -05:00

Update 4joy_adapter.ino

This commit is contained in:
Jarno Lehtinen 2018-12-07 17:36:57 +02:00 committed by GitHub
parent ef806b50a1
commit cec43bfadc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,6 @@ ISR(INT2_vect, ISR_NAKED) { // rising edge, output joystick 3
:: [pin] "I" (_SFR_IO_ADDR(PORTB)), [gpio] "I" (_SFR_IO_ADDR(GPIOR0)));
}
//ISR(INT2_vect_part_2) { ptr = &GPIOR0; last_interrupt = TCNT1; }
ISR(INT2_vect_part_2) { ptr = &GPIOR0; }
ISR(INT3_vect, ISR_NAKED) { // falling edge, output joystick 4
@ -72,7 +71,6 @@ ISR(INT3_vect, ISR_NAKED) { // falling edge, output joystick 4
:: [pin] "I" (_SFR_IO_ADDR(PORTB)), [gpio] "I" (_SFR_IO_ADDR(GPIOR1)));
}
//ISR(INT3_vect_part_2) { ptr = &GPIOR1; last_interrupt = TCNT1; }
ISR(INT3_vect_part_2) { ptr = &GPIOR1; }
void setup() {