Hi! I having problems with setting IRQ in DEMOJM MCF51JM128, CW V6.3 and MQX 3.7 like this:
const GPIO_PIN_STRUCT pins_irq[] = { GPIO_SYNC | GPIO_PIN_IRQ_FALLING, GPIO_LIST_END};void fpga_sync_irq(void) { fpga_sync++;}init function:irq_fd = fopen("gpio:input", (char *)&pins_irq);err = ioctl(irq_fd, GPIO_IOCTL_SET_IRQ_FUNCTION, (char_ptr)&fpga_sync_irq);err = ioctl(irq_fd, GPIO_IOCTL_ENABLE_IRQ, NULL);
The interrupt callback works only on rising edge... is it even possible to set callback like this in MCF51JM128 since it has only one IRQ and eight KBI interrupts?