mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-30 11:24:12 +01:00
Switching to new signal (interrupt handler) names for compatibility with the ATmega328.
This commit is contained in:
parent
e79b319fd1
commit
65b1e9225c
@ -78,12 +78,12 @@ void attachInterruptTwi(void (*userFunc)(void) ) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SIGNAL(SIG_INTERRUPT0) {
|
SIGNAL(INT0_vect) {
|
||||||
if(intFunc[EXTERNAL_INT_0])
|
if(intFunc[EXTERNAL_INT_0])
|
||||||
intFunc[EXTERNAL_INT_0]();
|
intFunc[EXTERNAL_INT_0]();
|
||||||
}
|
}
|
||||||
|
|
||||||
SIGNAL(SIG_INTERRUPT1) {
|
SIGNAL(INT1_vect) {
|
||||||
if(intFunc[EXTERNAL_INT_1])
|
if(intFunc[EXTERNAL_INT_1])
|
||||||
intFunc[EXTERNAL_INT_1]();
|
intFunc[EXTERNAL_INT_1]();
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
volatile unsigned long timer0_clock_cycles = 0;
|
volatile unsigned long timer0_clock_cycles = 0;
|
||||||
volatile unsigned long timer0_millis = 0;
|
volatile unsigned long timer0_millis = 0;
|
||||||
|
|
||||||
SIGNAL(SIG_OVERFLOW0)
|
SIGNAL(TIMER0_OVF_vect)
|
||||||
{
|
{
|
||||||
// timer 0 prescale factor is 64 and the timer overflows at 256
|
// timer 0 prescale factor is 64 and the timer overflows at 256
|
||||||
timer0_clock_cycles += 64UL * 256UL;
|
timer0_clock_cycles += 64UL * 256UL;
|
||||||
|
@ -107,7 +107,7 @@ void serialFlush()
|
|||||||
#if defined(__AVR_ATmega8__)
|
#if defined(__AVR_ATmega8__)
|
||||||
SIGNAL(SIG_UART_RECV)
|
SIGNAL(SIG_UART_RECV)
|
||||||
#else
|
#else
|
||||||
SIGNAL(SIG_USART_RECV)
|
SIGNAL(USART_RX_vect)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if defined(__AVR_ATmega8__)
|
#if defined(__AVR_ATmega8__)
|
||||||
|
Loading…
Reference in New Issue
Block a user