2017-01-04 01:39 AM
Hi,
We have integrated NFC chip to the beagle bone custom board. We would like to know how to use interrupt which when triggered by phone allows our application in linux to read from the chip.Appreciate if you can provide some sample code. It has to use I2C protocols.
Thanks
Aswin
Solved! Go to Solution.
2017-01-06 02:40 AM
The board you mention is not based on a STmicroelectronics MCU, so the answer is no.
2017-01-04 04:27 AM
Hello Aswin,
I suggest you have a look to the M24SR-DISCOVERY board software, here:
This software defines a M24SR_ManageGPO function to initialize the M24SR GPO.
In the M24SR-DISCOVERY demo, after calling this function, the application polls on the PIO connected on the M24SR GPO.
Please note, that the STSW-M24SR001 is a STM32 software (so not a Linux driver).
Regards.
2017-01-05 03:22 AM
Hi
What you are suggesting is to poll. What I need is to trigger to be used and a call back function to be called.
I have gone through the software and trying to figure out how to call interrupt.
Please advice me how to use triggers.
Thanks
Aswin Paranji
2017-01-05 07:09 AM
Hi Aswin,
Your request actually depends on the MCU & software framework you are using.
The following link (x-cube-nfc1) provides an example based on the STM32Cube framework:
The GPIO used to detect the transitions on the M24SR GPO is configured by the M24SR_GPOInit function (main.c), the corresponding EXTI interrupt is enabled in the same function.
The original IRQ callback is defined in the stm32f4xx_it.c: function EXTI9_5_IRQHandler.
And the IRQ is redirected to the application GPO handler: HAL_GPIO_EXTI_Callback in stm32f4xx_hal_msp.c.
Does it help with your request?
Regards.
2017-01-06 02:35 AM
Hi,
We have used Beagle bone black platform and integrated the NFC into it. This is provided to us as a custom board.
Will the software work on this platform.
Thanks
Aswin
2017-01-06 02:40 AM
The board you mention is not based on a STmicroelectronics MCU, so the answer is no.