What is the Easiest Way to Add Driver Support for Analog/Discrete Input and Custom Routine? #257
Unanswered
bear-fighter
asked this question in
Q&A
Replies: 1 comment
-
If you have a board map file then supporting code for that - like e.g. the citoh_cx6000 has here. If not then a user plugin?
You decide - both are possible. Here is an example for how to insert a function into the main loop. The yet to be completed documentation may provide some details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to add either an analog or discrete (PWM) input to the RP2040 so I can a write closed-loop spindle speed control routine. The inner grblHAL workings of periodic ISR calls are still unclear after studying the source code. What is the right level (i.e. source files) to add a routine? Should I be setting up PWM timers at the driver level and registering my ISR that way or does grblHAL provide an interface for adding custom functions to the main operating loop (MOL)?
Beta Was this translation helpful? Give feedback.
All reactions