I need to start EDMA SPI receive 16 bytes for each GPIO event.
I know how to do it as baremetal (without SYS/BIOS) application.
In the bare metal:
I initialize EDMA for receive GPIO event. After EACH GPIO event EDMA start SPI transmission of 16 dummy bytes and read 16 bytes of data. After receiving 16 bytes EDMA generates interrupt.
But I need to do in SYS/BIOS. As I understood I should waiting event in the Task (by the Event_pend() ) and calls GIO_read() when GPIO event is coming.
Should I configure EDMA for GPIO event receive? So, If yes, how to do it in SYS/BIOS paradigm?
Other question: can I configure EDMA mannualy as in the baremetal application (like in StarterWare example) and then start SYS/BIOS in my application or better configure EDMA driver for receive GPIO event in SYS/BIOS?