33 #ifdef __BUILD_WITH_EXAMPLE__
34 #include "lpc17xx_libcfg.h"
56 uint32_t prescale, temp;
69 temp = target_clock * prescale;
70 if (temp >= spi_pclk){
108 return ((SPIx->
SPCR)>>8 & 0xF);
134 tmp = ((SPI_ConfigStruct->
CPHA) | (SPI_ConfigStruct->
CPOL) \
218 uint8_t *rdata8 =
NULL;
219 uint8_t *wdata8 =
NULL;
220 uint16_t *rdata16 =
NULL;
221 uint16_t *wdata16 =
NULL;
239 rdata8 = (uint8_t *)dataCfg->
rx_data;
240 wdata8 = (uint8_t *)dataCfg->
tx_data;
242 rdata16 = (uint16_t *)dataCfg->
rx_data;
243 wdata16 = (uint16_t *)dataCfg->
tx_data;
279 *(rdata8) = (uint8_t) temp;
282 *(rdata16) = (uint16_t) temp;
417 return ((inputSPIStatus & SPIStatus) ?
SET :
RESET);