1 bug #35737: new awr-gcc is picky about depreciated constants
2 http://savannah.nongnu.org/bugs/?35737
4 diff --git a/examples/atmega128_timer/main.c b/examples/atmega128_timer/main.c
5 index 15661d7..d666ac0 100644
6 --- a/examples/atmega128_timer/main.c
7 +++ b/examples/atmega128_timer/main.c
9 volatile int timer2_ticks;
12 -ISR(SIG_OUTPUT_COMPARE2)
13 +ISR(TIMER2_COMP_vect)
17 diff --git a/examples/atmel_key/StdDefs.c b/examples/atmel_key/StdDefs.c
18 index 738f84c..556d6ff 100644
19 --- a/examples/atmel_key/StdDefs.c
20 +++ b/examples/atmel_key/StdDefs.c
21 @@ -54,14 +54,6 @@ void test_pin(void)
22 sbi(TESTPIN_PORT, TESTPIN_BIT);
25 -// Delay in 1/10's of a millisecond
26 -// Does not work with -O0, use -O1, even for debugging.
27 -void msleep(INT16U ms10)
29 - for( ; ms10; --ms10)
33 //------------------------------------------------------------
34 // void putBCD(INT16S X, CHARU length, CHARU TrailingSpace)
36 diff --git a/examples/atmel_key/StdDefs.h b/examples/atmel_key/StdDefs.h
37 index 9ae8b91..38ea1d8 100644
38 --- a/examples/atmel_key/StdDefs.h
39 +++ b/examples/atmel_key/StdDefs.h
40 @@ -63,8 +63,8 @@ void print_hexbyte(unsigned char i);
41 #define UART_BAUD_REG_H UBRR0H
42 #define UART_CONTROL_REG UCSR0B
43 #define UART_STATUS_REG UCSR0A
44 - #define UART_RCV_INT_VECTOR SIG_UART0_RECV
45 - #define UART_REG_EMPTY_INT_VECTOR SIG_UART0_DATA
46 + #define UART_RCV_INT_VECTOR USART0_RX_vect
47 + #define UART_REG_EMPTY_INT_VECTOR USART0_UDRE_vect
48 #define UART_DATA_REG UDR0
49 #elif DEVICE_NAME == ATMEGA163
50 #define UART_BAUD_REG UBRR
51 diff --git a/examples/atmel_key/kb.c b/examples/atmel_key/kb.c
52 index 322b443..77edaa2 100644
53 --- a/examples/atmel_key/kb.c
54 +++ b/examples/atmel_key/kb.c
55 @@ -36,7 +36,7 @@ void init_kb(void)
59 -SIGNAL(SIG_INTERRUPT0)
62 static unsigned char data; // Holds the received scan code
64 diff --git a/examples/atmel_key/main.c b/examples/atmel_key/main.c
65 index 5fb551a..47a2221 100644
66 --- a/examples/atmel_key/main.c
67 +++ b/examples/atmel_key/main.c
69 // PS-1 Keyboard interface test program
72 +#include <util/delay.h>
75 #include <avr/interrupt.h>
76 @@ -31,7 +32,7 @@ int main(void)
85 diff --git a/examples/atmel_key/scancodes.h b/examples/atmel_key/scancodes.h
86 index a9375f3..f39474b 100644
87 --- a/examples/atmel_key/scancodes.h
88 +++ b/examples/atmel_key/scancodes.h
91 // Unshifted characters
93 -static char unshifted[][2] __attribute__ ((progmem)) = {
94 +static const char unshifted[][2] PROGMEM = {
98 @@ -87,7 +87,7 @@ static char unshifted[][2] __attribute__ ((progmem)) = {
101 // Shifted characters
102 -prog_char shifted[][2] = {
103 +static const char shifted[][2] PROGMEM = {
107 diff --git a/examples/python/ex_pinout.c b/examples/python/ex_pinout.c
108 index 0bea2e0..7e55392 100644
109 --- a/examples/python/ex_pinout.c
110 +++ b/examples/python/ex_pinout.c
113 volatile int timer2_ticks;
115 -ISR(SIG_OUTPUT_COMPARE2) {
116 +ISR(TIMER2_COMP_vect) {
120 diff --git a/examples/python/example.c b/examples/python/example.c
121 index bfd7509..35931b5 100644
122 --- a/examples/python/example.c
123 +++ b/examples/python/example.c
125 volatile int timer2_ticks;
128 -ISR(SIG_OUTPUT_COMPARE2) {
129 +ISR(TIMER2_COMP_vect) {
133 diff --git a/examples/python/example_io.c b/examples/python/example_io.c
134 index 3822b41..71c932e 100644
135 --- a/examples/python/example_io.c
136 +++ b/examples/python/example_io.c
137 @@ -5,7 +5,7 @@ volatile int timer2_ticks;
138 volatile int port_val;
139 volatile int port_cnt;
141 -ISR(SIG_OUTPUT_COMPARE2) {
142 +ISR(TIMER2_COMP_vect) {
146 diff --git a/examples/python/multicore.c b/examples/python/multicore.c
147 index 2df7443..869563e 100644
148 --- a/examples/python/multicore.c
149 +++ b/examples/python/multicore.c
151 volatile char cnt_irq = 0; // IRQ counter
\r
152 volatile char cnt_res = 0; // measurement value for time distance between events
\r
154 -ISR(SIG_INTERRUPT0) {
\r
156 cnt_irq++; // increment event counter
\r
157 cnt_res = TCNT0; // save timer value = time distance to last event
\r
158 TCNT0 = 0; // reset timer value
\r
159 diff --git a/regress/extinttest/ext_int0.c b/regress/extinttest/ext_int0.c
160 index 9a619c2..a12304a 100644
161 --- a/regress/extinttest/ext_int0.c
162 +++ b/regress/extinttest/ext_int0.c
163 @@ -89,12 +89,12 @@ volatile unsigned char hs_data = 0;
164 volatile unsigned char dis_mask = 0;
166 #if defined(TEST_INT1)
167 - ISR(SIG_INTERRUPT1) {
170 # if defined(TEST_INT2_16)
171 - ISR(SIG_INTERRUPT2) {
174 - ISR(SIG_INTERRUPT0) {
179 diff --git a/regress/timertest/timer_16bit.c b/regress/timertest/timer_16bit.c
180 index c3accf2..bcdd27b 100644
181 --- a/regress/timertest/timer_16bit.c
182 +++ b/regress/timertest/timer_16bit.c
183 @@ -7,7 +7,7 @@ volatile int timer_ticks;
187 -ISR(SIG_OUTPUT_COMPARE3B) {
188 +ISR(TIMER3_COMPB_vect) {
192 diff --git a/regress/timertest/timer_8bit_ctc.c b/regress/timertest/timer_8bit_ctc.c
193 index 1b9c969..7341336 100644
194 --- a/regress/timertest/timer_8bit_ctc.c
195 +++ b/regress/timertest/timer_8bit_ctc.c
197 volatile int timer_ticks;
200 -ISR(SIG_OUTPUT_COMPARE2A) {
201 +ISR(TIMER2_COMPA_vect) {
205 -ISR(SIG_OUTPUT_COMPARE2) {
206 +ISR(TIMER2_COMP_vect) {