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:
parent
ef806b50a1
commit
cec43bfadc
@ -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)));
|
:: [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(INT2_vect_part_2) { ptr = &GPIOR0; }
|
||||||
|
|
||||||
ISR(INT3_vect, ISR_NAKED) { // falling edge, output joystick 4
|
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)));
|
:: [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; }
|
ISR(INT3_vect_part_2) { ptr = &GPIOR1; }
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user