cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate UART RX INTERRUPT WITH SPC560PXX

Pradnya
Associate II

Hello All,

I am working on UART on SPC560p Discovery board. I can transmit the data but unable to receive the data. I want to receive byte by interrupt method to avoid blocking.

Please guide me with Rx interrupt initialization so that I can use

"static void spc5xx_serve_rxi_interrupt(uint32_t isdp)" function given in "Serial_iid.c"

Also please suggest me if any other method to receive the data without blocking.

Thank You,

Pradnya

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

Hello ,

You have to enable LInFlex 0 Low Level Drivers

you already support interrupt method in our driver

please follow example serial application

/**

 * @brief  LINFlex-0 RXI interrupt handler.

 *

 * @isr

 */

IRQ_HANDLER(SPC5_LINFLEX0_RXI_HANDLER) {

 IRQ_PROLOGUE();

 LinflexD1.rxi_lincallback(LinflexD1.device);

 IRQ_EPILOGUE();

}

Best regards

Erwan

View solution in original post

1 REPLY 1
Erwan YVIN
ST Employee

Hello ,

You have to enable LInFlex 0 Low Level Drivers

you already support interrupt method in our driver

please follow example serial application

/**

 * @brief  LINFlex-0 RXI interrupt handler.

 *

 * @isr

 */

IRQ_HANDLER(SPC5_LINFLEX0_RXI_HANDLER) {

 IRQ_PROLOGUE();

 LinflexD1.rxi_lincallback(LinflexD1.device);

 IRQ_EPILOGUE();

}

Best regards

Erwan