There are several macros that have semicolons at the end of
their definitions when they should not:
86 #define WRITE_SR(x) \
87 __asm__ __volatile__( "mov %0, r2" : : "r" ((uint16_t)x) );
105 #define WRITE_SP(x) \
106 __asm__ __volatile__( "mov %0, r1" : : "r" ((uint16_t)x) );
118 #define _BIS_SR(x) __asm__ __volatile__( "bis %0, r2"
: : "i" ((uint16_t)x) );
119 #define _BIC_SR(x) __asm__ __volatile__( "bic %0, r2"
: : "i" ((uint16_t)x) );
120
121 #define __bis_SR_register(x) __asm__ __volatile__( "bis %0, r2"
: : "i" ((uint16_t)x) );
122 #define __bic_SR_register(x) __asm__ __volatile__( "bic %0, r2"
: : "i" ((uint16_t)x) );
--
Grant Edwards
[email protected]