declaration of BSP_SPI1_IRQ_Callback() in FreeRTOS_polling
about declaration of BSP_SPI1_IRQ_Callback() in ST25NFC_Embedded_Lib_ST25R3916_1.4.0\Projects\STM32L476RG-Nucleo\Applications\X-NUCLEO-NFC06A1\FreeRTOS_polling
Dear Sir,
I am check the process flow of sample program which use FreeTROS.
I found that the function BSP_SPI1_IRQ_Callback() is declared in two place,
one is in nucleo_l476rg_bus.c, another is in plf_adaptation.c .
Could you tell me which one is used in this demo sample?
Also, in this sample code, st25r3916Isr() is called in two different place.
one is in
----------------------------------------
void nfcIsrTaskRunner(void *argument)
{
/* Infinite loop */
for(;;)
{
ulTaskNotifyTake( pdTRUE, portMAX_DELAY ); /* Check if IRQ happen execute immediately, otherwise other execute Task meanwhile */
st25r3916Isr(); /* ISR called from main task avoid calling vTaskSuspendAll from ISR (SPI) - NFC IRQ pin is anyhow checked */
xSemaphoreGive(platformSem);
}
}
-------------------------------------------------------
another is in
--------------------------------------
__weak void BSP_SPI1_IRQ_Callback(void)
{
/* Prevent unused argument(s) compilation warning */
/* This function should be implemented by the user application.
* It is called into this driver when an event from ST25R3916 is triggered.
*/
st25r3916Isr();
}
---------------------------------------
Are there two manners used in this demo? What are the main differences for them?
Best regards
Dai Sai
