Hi Shelves,
I updated the MQX3.8/mqx/examples/spi/spic as follows to operate in the either polled (the default setting) or interrupt mode.
#if ! BSPCFG_ENABLE_SPI2 && ! BSPCFG_ENABLE_ISPI2
#error This application requires BSPCFG_ENABLE_SPI2 or BSPCFG_ENABLE_ISPI2 defined non-zero in user_config.h. Please recompile kernel with this option.
#endif
#if BSPCFG_ENABLE_SPI2
#define TEST_CHANNEL_POLLED "spi2:"
#endif
#if BSPCFG_ENABLE_ISPI2
#define TEST_CHANNEL_INT "ispi2:"
#endif
In my user_config.h I have the following:
#define BSPCFG_ENABLE_ISPI2 1
Always recompiler the RTOS after any change to user_config.h.
Please note that IOCTL calls always are accomplished via a polled method. The inerrupt is used when the fread/fwrite() functions are called. Please look at the memory_int.c functions as reference.
Hope this helps.
Regards,
David