beagleboard / am335x_pru_package

331 stars 181 forks source link

Do we have to open an interrupt in order for the PRU to work? #65

Open giuliomoro opened 6 years ago

giuliomoro commented 6 years ago

int prussdrv_open(unsigned int host_interrupt) expects that we pass an interrupt number, but what if our program does not need interrupts at all, or if these are handled differently? However, if we do not call prussdrv_open, then the internal __prussdrv_memmap_init() will not be called and so further calls may fail. So currently, my workaround is to call prussdrv_open(PRU_EVTOUT_0) and then ignore the interrupt. I'd argue we should not be forced to open an interrupt fd. Or am I missing something?