We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Why error in mutline macro here:
#define MCP_SPI_CONFIGURE { \ LPC_IOCON->PIO0_6 = 0x82; /* ssp0 clk config */ \ LPC_IOCON->PIO0_8 = 0x81; /* ssp0 miso config */ \ LPC_IOCON->PIO0_9 = 0x81; /* ssp0 mosi config */ \ } #define MCP_CS_CONFIGURE { \ LPC_IOCON->PIO1_26 = 0x00000080; /* GPIO pin used for chip select */ \ LPC_GPIO->DIR[GPIO_PORT_1] |= GPIO_BIT_26; /*set bit 2 as output */ \ LPC_GPIO->SET[GPIO_PORT_1] = GPIO_BIT_26; /*set bit 2 high i.e diable chip */ \ }
.
Look at the Preprocessor output to see what's actually happening...
Judging by the recent posting patterns, it looks like a certain poster has just got round to reading up on the preprocessor.
Code don't build. It gives error like: parsing starts , expected an expression, expexted a "}".
Remember, the compiler only sees the output from the preprocessor.
So, again, look at the Preprocessor output to see what's actually happening...
http://www.keil.com/support/man/docs/uv4/uv4_dg_adslst.htm
c-faq.com/.../multistmt.html
You've got spaces behind the backslashes. The backslashes are supposed to escape the line feed, there may not be any spaces behind them.
Thanks, that was error.