2023-02-07 09:59 AM
Hello, I 'm working on porting the RFAL for a ST25R3916B application. I read through the description of platformProtectST25RComm() but I just wanted to clarify: is this disabling all interrupts on the MCU so that nothing will mess up the SPI communication, or is this disabling the interrupt line coming from the ST25R3916B?
Solved! Go to Solution.
2023-02-08 12:25 AM
Hi,
when an interrupt is coming from the ST25R3916B, the related ISR reads the interrupt registers through SPI. platformProtectST25RComm() is used to avoid SPI communication mess up between the main task and the ISR.
As well, the ISR updates st25r3916interrupt.status that is then used and cleared by the main task. platformProtectST25RIrqStatus is used to avoid concurrent access issue on st25r3916interrupt.status
On STM32 MCU, platformProtectST25RComm/platformUnprotectST25RComm disables/enables the interrupt line coming from the ST25R3916B.
Fell free to provide more information about your MCU.
Rgds
BT
2023-02-08 12:25 AM
Hi,
when an interrupt is coming from the ST25R3916B, the related ISR reads the interrupt registers through SPI. platformProtectST25RComm() is used to avoid SPI communication mess up between the main task and the ISR.
As well, the ISR updates st25r3916interrupt.status that is then used and cleared by the main task. platformProtectST25RIrqStatus is used to avoid concurrent access issue on st25r3916interrupt.status
On STM32 MCU, platformProtectST25RComm/platformUnprotectST25RComm disables/enables the interrupt line coming from the ST25R3916B.
Fell free to provide more information about your MCU.
Rgds
BT