Skip to content

arch/stm32f0l0g0: add qencoder support#18717

Merged
linguini1 merged 3 commits intoapache:masterfrom
raiden00pl:stm32c0_qenco
Apr 12, 2026
Merged

arch/stm32f0l0g0: add qencoder support#18717
linguini1 merged 3 commits intoapache:masterfrom
raiden00pl:stm32c0_qenco

Conversation

@raiden00pl
Copy link
Copy Markdown
Member

Summary

Add qencoder support for stm32f0l0g0c0 and enable qe example for nucloe-c0 boards.
Ported for stm32

Impact

qencoder support for stm32-m0 chips

Testing

nucleo-c071rb with qe example from jumbo config:

nsh> qe
qe_main: Hardware initialized. Opening the encoder device: /dev/qe0
qe_main: Number of samples: 0
qe_main:   1. 0
qe_main:   2. 0
qe_main:   3. 0
qe_main:   4. 0
qe_main:   5. 0
qe_main:   6. 0
qe_main:   7. 0
qe_main:   8. 0
qe_main:   9. 0
qe_main:  10. 10
qe_main:  11. 16
qe_main:  12. 20
qe_main:  13. 20
qe_main:  14. 26
qe_main:  15. 40
qe_main:  16. 42
qe_main:  17. 42
qe_main:  18. 53
qe_main:  19. 54
qe_main:  20. 54
qe_main:  21. 43
qe_main:  22. 37
qe_main:  23. 37
qe_main:  24. 37
qe_main:  25. 23
qe_main:  26. 21
qe_main:  27. 21
qe_main:  28. 20
qe_main:  29. 2
qe_main:  30. 1
qe_main:  31. 0
qe_main:  32. 0
qe_main:  33. 0
qe_main:  34. 0
qe_main:  35. 0
qe_main:  36. 0
qe_main:  37. 0
qe_main:  38. 0
qe_main:  39. 0
qe_main:  40. 0
qe_main:  41. 0

@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. Board: arm labels Apr 12, 2026
@raiden00pl raiden00pl force-pushed the stm32c0_qenco branch 2 times, most recently from 6092ef1 to fc13930 Compare April 12, 2026 08:22
fix TIM2 width - it is 32-bit on F0/G0/C0 but 16-bit on C0

Signed-off-by: raiden00pl <raiden00@railab.me>
add QENCODER support for STM32F0/L0/G0/C0

Signed-off-by: raiden00pl <raiden00@railab.me>
add qencoder support for nucleo-c0 boards

Signed-off-by: raiden00pl <raiden00@railab.me>
@linguini1 linguini1 merged commit a448781 into apache:master Apr 12, 2026
47 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Board: arm Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants