Hi Deepak Kumar
This example set up UART inside BleApp_Init, you can find the following code:
void BleApp_Init(void)
{
BOARD_InitAdc();
SerialManager_Init();
Serial_InitInterface(&gAppSerMgrIf, APP_SERIAL_INTERFACE_TYPE, APP_SERIAL_INTERFACE_INSTANCE);
Serial_SetBaudRate(gAppSerMgrIf, gUARTBaudRate115200_c);
Serial_SetRxCallBack(gAppSerMgrIf, Uart_RxCallBack, NULL);
}
If you check APP_SERIAL_INTERFACE_TYPE you will find it defined with gSerialMgrLpuart_c, so you need to change this with gSerialMgrSPIMaster_c, and when you call Serial_InitInterface, it will set the SPI interface.
You will need to change Uart_RxCallBack, Uart_TxCallBack, BleApp_ReceivedUartStream, BleApp_FlushUartStream, etc. which are application specific, all of them are located in app.c
Hope this information could help you.
Best Regards
Jorge Alcala