-
Hey, I access the qdec node via the sensor struct. However I cannot get an interrupt running for the qdec. Then i tried to add a counter, where a interrupt should be triggered when a certain value is reached (i used the counter_set_channel_alarm() function to this). I triet to implement a counter interrupt for timer3 where everything works fine. I noticed that every timer only has a global interrupt line, except timer1 (which as "brk", "up", "cc" and on other i cannot remember). Any help is appreciated :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could also have counter with stm32 GP Timer : see as examples drivers: counter: add st,stm32-counter to stm32h7 #52520 or #52583 for L5 counter with RTC |
Beta Was this translation helpful? Give feedback.
You could also have counter with stm32 GP Timer : see as examples drivers: counter: add st,stm32-counter to stm32h7 #52520 or #52583 for L5 counter with RTC
This is not in the device tree of the stm32U5, but could be adapted for tim2,3,4,5.
(I had something around that : https://github.com/FRASTM/zephyr/tree/counter_u5)