Hello,
I trying to compile some code that compiles in IAR on CCS. I have most of it working now, but I am getting a pre-processors error on a concatenation. This is the define
#define MCU_IO_INPUP(port, pin, func) st( P##port##SEL &= ~BIT##pin##; P##port##DIR &= ~BIT##pin##; )
This is the line that causes the error: ( I have 100 lines exactly the same causing the same error)
MCU_IO_INPUT(HAL_BOARD_IO_BTN_1_PORT, HAL_BOARD_IO_BTN_1_PIN, MCU_IO_TRISTATE);
I get a compiler error that says the ":" does not create a valid token.
Regards,
/Thomas