Hello,
I create my own SDIO project for LPC54607.
I use 4-bit mode of communication and I have no issues reading card Capability on so on. The standard commands and data sending works fine.
I would like to use interrupts in my project, being still in 4-bit mode. As know from SDIO spec, the interrupts should appear on Data1 line (voltage being pulled down by SDIO card).
My problem is that I can not get my program to execute SDIO_IRQHandler function.
I have a part of code for interrupt registration:
NVIC_SetPriority(SDIO_IRQn, 5U);
NVIC_EnableIRQ(SDIO_IRQn);
SDIO_EnableIOInterrupt(card, kSDIO_FunctionNum1, enable);
SDIO_EnableIOInterrupt(card, kSDIO_FunctionNum2, enable);
SDIO_SetIOIRQHandler(card, kSDIO_FunctionNum1, handler);
SDIO_SetIOIRQHandler(card, kSDIO_FunctionNum2, handler);
Is there anything else I should run to start handler function after interrupt? Maybe something with GPIO interrupts?
Thanks,
Piotr