replaced deprecated SIGNAL() and SIG_* macros to be compatible with avr-libc 1.8.0 and gcc 4.7.0
This commit is contained in:
parent
d6e322a988
commit
6f084a5923
|
@ -27,7 +27,7 @@
|
|||
unsigned char pixmap[NUMPLANE][NUM_ROWS][LINEBYTES];
|
||||
|
||||
|
||||
SIGNAL(SIG_OUTPUT_COMPARE0)
|
||||
ISR(TIMER0_COMP_vect)
|
||||
{
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#if defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644__)
|
||||
/* more ifdef magic :-( */
|
||||
#define OCR0 OCR0A
|
||||
#define SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE0A
|
||||
#define TIMER0_COMP_vect TIMER0_COMPA_vect
|
||||
#endif
|
||||
|
||||
// buffer which holds the currently shown frame
|
||||
|
@ -94,7 +94,7 @@ static void rowshow(unsigned char row, unsigned char plane) {
|
|||
|
||||
// depending on the plane this interrupt gets triggered at 50 kHz, 31.25 kHz or
|
||||
// 12.5 kHz
|
||||
SIGNAL(SIG_OUTPUT_COMPARE0) {
|
||||
ISR(TIMER0_COMP_vect) {
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#if defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644__)
|
||||
/* more ifdef magic :-( */
|
||||
#define OCR0 OCR0A
|
||||
#define SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE0A
|
||||
#define TIMER0_COMP_vect TIMER0_COMPA_vect
|
||||
#endif
|
||||
|
||||
// buffer which holds the currently shown frame
|
||||
|
@ -128,7 +128,7 @@ static void rowshow(unsigned char row, unsigned char plane) {
|
|||
|
||||
// depending on the plane this interrupt triggers at 50 kHz, 31.25 kHz or
|
||||
// 12.5 kHz
|
||||
SIGNAL(SIG_OUTPUT_COMPARE0) {
|
||||
ISR(TIMER0_COMP_vect) {
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
/* more ifdef magic :-( */
|
||||
#if defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644__)
|
||||
#define OCR0 OCR0A
|
||||
#define SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE0A
|
||||
#define TIMER0_COMP_vect TIMER0_COMPA_vect
|
||||
#endif
|
||||
|
||||
// buffer which holds the currently shown frame
|
||||
|
|
|
@ -55,7 +55,7 @@ inline void rowshow(unsigned char row, unsigned char plane) {
|
|||
}
|
||||
|
||||
|
||||
SIGNAL(SIG_OUTPUT_COMPARE0) {
|
||||
ISR(TIMER0_COMP_vect) {
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ inline void rowshow(unsigned char row, unsigned char plane) {
|
|||
// for(n=0;n<250;n++) asm ("nop");
|
||||
}
|
||||
|
||||
SIGNAL( SIG_OUTPUT_COMPARE0) {
|
||||
ISR(TIMER0_COMP_vect) {
|
||||
static unsigned char plane = 0;
|
||||
unsigned char row = 0;
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ inline void rowshow(unsigned char row, unsigned char plane){
|
|||
|
||||
extern uint8_t schmuh;
|
||||
|
||||
ISR(SIG_OVERFLOW0)
|
||||
ISR(TIMER0_OVF_vect)
|
||||
{
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#if defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644__)
|
||||
/* more ifdef magic :-( */
|
||||
#define OCR0 OCR0A
|
||||
#define SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE0A
|
||||
#define TIMER0_COMP_vect TIMER0_COMPA_vect
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -46,7 +46,7 @@ unsigned char pixmap[NUMPLANE][NUM_ROWS][LINEBYTES];
|
|||
|
||||
// depending on the plane this interrupt gets triggered at 50 kHz, 31.25 kHz or
|
||||
// 12.5 kHz
|
||||
SIGNAL( SIG_OUTPUT_COMPARE0) {
|
||||
ISR(TIMER0_COMP_vect) {
|
||||
// reset watchdog
|
||||
wdt_reset();
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ inline void checkkeys(uint8_t row){
|
|||
|
||||
// depending on the plane this interrupt gets triggered at 50 kHz, 31.25 kHz or
|
||||
// 12.5 kHz
|
||||
SIGNAL(SIG_OUTPUT_COMPARE0)
|
||||
ISR(TIMER0_COMP_vect)
|
||||
{
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
|
|
@ -142,7 +142,7 @@ inline void rowshow(unsigned char row, unsigned char plane) {
|
|||
|
||||
// depending on the plane this interrupt gets triggered at 50 kHz, 31.25 kHz or
|
||||
// 12.5 kHz
|
||||
SIGNAL(SIG_OUTPUT_COMPARE0) {
|
||||
ISR(TIMER0_COMP_vect) {
|
||||
static unsigned char plane = 0;
|
||||
unsigned char row = 0;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ static void rowshow(unsigned char row, unsigned char plane) {
|
|||
|
||||
// depending on the plane this interrupt gets triggered at 50 kHz, 31.25 kHz or
|
||||
// 12.5 kHz
|
||||
SIGNAL(SIG_OVERFLOW0) {
|
||||
ISR(TIMER0_OVF0_vect) {
|
||||
static unsigned char plane = 0;
|
||||
static unsigned char row = 0;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ uint32_t akku;
|
|||
unsigned char row = 0;
|
||||
|
||||
|
||||
ISR(SIG_OUTPUT_COMPARE0)
|
||||
ISR(TIMER0_COMP_vect)
|
||||
{
|
||||
// reset watchdog
|
||||
wdt_reset();
|
||||
|
|
|
@ -205,7 +205,7 @@ unsigned char RX_HEAD=0;volatile unsigned char RX_TAIL=0;
|
|||
unsigned char TX_HEAD= 0;volatile unsigned char TX_TAIL=0;
|
||||
static volatile unsigned char TX_INT;
|
||||
|
||||
SIGNAL(SIG_INTERRUPT0) {
|
||||
ISR(INT0_vect) {
|
||||
unsigned char status = mcp_status();
|
||||
|
||||
if ( status & 0x01 ) { // Message in RX0
|
||||
|
|
|
@ -28,7 +28,7 @@ volatile static char *volatile rxhead, *volatile rxtail;
|
|||
volatile static char *volatile txhead, *volatile txtail;
|
||||
|
||||
|
||||
SIGNAL(SIG_UART_DATA) {
|
||||
ISR(USART_UDRE_vect) {
|
||||
#ifdef UART_LEDS
|
||||
PORTC ^= 0x01;
|
||||
#endif
|
||||
|
@ -41,7 +41,7 @@ SIGNAL(SIG_UART_DATA) {
|
|||
}
|
||||
}
|
||||
|
||||
SIGNAL(SIG_UART_RECV) {
|
||||
ISR(USART_RXC_vect) {
|
||||
int diff;
|
||||
|
||||
#ifdef UART_LEDS
|
||||
|
|
Loading…
Reference in New Issue