This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multiline Macro error

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 */    \ 
                                                                                                        }

.

0