This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540 and smart RF05 SPI communication

HI,

I use SimpleBLEPeripheral project(BLE-CC254x-1.4.0) and added SPI function.
I use SPI on smart RF05 board.

Q1:How to set the project variables for SPI function? 

This is my setting:

INT_HEAP_LEN=3072
HALNODEBUG
OSAL_CBTIMER_NUM_TASKS=1
HAL_AES_DMA=TRUE
HAL_DMA=TRUE
xPOWER_SAVING
PLUS_BROADCASTER
HAL_LCD=TRUE
HAL_LED=TRUE
HAL_UART=TRUE
HAL_UART_SPI=2
HAL_SPI_MASTER=TRUE
HAL_UART_PORT=0
xCC2540_MINIDK

Q2:SPI function contains HalUARTInitSPI()、HalUARTOpenSPI() 、HalUARTReadSPI() and HalUARTWriteSPI() ?

How to use SPI function?

Q3:How to modify SimpleBLEPeripheral to fit my pin selection?

Q4:Where is sample code for SPI ?

Thanks