Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2530: Macro concatenation with "=" does not create a valid token

$
0
0

Part Number:CC2530

Hello,

I'm using the IAR Workbench and I just wanna know how to avoid the below warning: 

Warning[Pe1665]: concatenation with "=" in macro "MCU_IO_OUTPUT_PREP" does not create a valid token 

In the follow code:

#define MCU_IO_OUTPUT_PREP(port, pin, val) st( P##port##SEL &= ~BM(pin); \
P##port##_##pin## = val; \
P##port##DIR |= BM(pin); )

the definition of "st()" is:

#define st(x)      do { x } while (__LINE__ == -1)

Please any help, 

Best regards and thanks a lot for your help


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>