Hallo,
ich versuche gerade alten, ursprünlich mit IAR kompilierten Code mit
msp430-gcc zu bauen. Dabei muss ich unter anderem die Interrupt-Routinen
anders deklarieren. So sieht die neue Lösung aus:
1 | ISR(ADC12_VECTOR, ADC12Int)
|
2 | {
|
3 | __low_power_mode_off_on_exit();
|
4 | ADC12IFG = 0;
|
5 | }
|
Dabei ist __low_power_mode_off_on_exit ein Makro:
1 | #define __low_power_mode_off_on_exit() __bis_status_register_on_exit(LPM4_bits);
|
Leider beschwert sich der msp-g++:
1 | Dev.c: In function ‘void ADC12Int()’:
|
2 | Dev.c:487:2: error: __bis_status_register_on_exit invalid outside of function with interrupt attribute
|
Hat jemand eine Idee, weshalb das so auftritt?
Viele Grüße
Marvin