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 */ \ }
.
Thanks, that was error.