I am looking for a good way to react on short and long buton clicks on a TMS570x, including debounce.
Disclaimer: I have asked a related question on the EEVBlog, but not TMS570x specific
the expected effect should be similar to what a volume control does:
- a short click should invoke a function, with debounce (say: volume up with one), after button release
- a long click should invoke a function repeatedly (say: continuous volume increase until button released or max reached), while button down until button release
I'd like to use the HALCoGen api as much as possible.
If you have experience to share I'd like t know.