Hi,
I want to raise an IRQ event programmatically with irq_set_pending() but this does not allow specifying the event cause.
In the ISR I presumably need to acknowledge IRQ to clear it.
Initially I intended to use a usr_irq on the unused pins :
But I realised I do not know what kind of event it creates. Does this work like the connected gpio pin interrupts?
Is this documented more fully somewhere?
I then tried to use TIMER_3 since I'm only using one PWM.That does not seem to work, IMU_ISR() is not getting called, so I'm presumably missing at step.
Can anyone help?
TIA.
I want to raise an IRQ event programmatically with irq_set_pending() but this does not allow specifying the event cause.
In the ISR I presumably need to acknowledge IRQ to clear it.
Initially I intended to use a usr_irq on the unused pins :
Code:
user_irq_claim(USR_IRQ_PIN);rq_set_mask_enabled (USR_IRQ_PIN,true);... irq_set_pending( USR_IRQ_PIN );
Is this documented more fully somewhere?
I then tried to use TIMER_3 since I'm only using one PWM.
Code:
irq_set_exclusive_handler(TIMER_IRQ_3, &IMU_ISR); irq_set_enabled(TIMER_IRQ_3, true); ... irq_set_pending( TIMER_IRQ_3 );
Can anyone help?
TIA.
Statistics: Posted by pie_face — Thu Aug 08, 2024 6:37 am