- Posts: 91
- Thank you received: 5
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/2.5/html/hal/comp.html is a starting point, then look at the components in the source code and pick one which is closest to what you want to do.Is there any documentation for writing hal driver modules for linuxcnc?
You shouldn't need to if the module is loaded with loadrt, it will have access to what it requires, unless you are completely directly hacking and not using rtapi calls.does linuxcnc have any code to load modules with root access?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I have already written a very basic test hal driver in c, it works with linuxcnc and the test LED is blinking when it should
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
mungkie wrote:
I have already written a very basic test hal driver in c, it works with linuxcnc and the test LED is blinking when it should
In that case:
sudo comp --install path/to/my/filename.c
ought to compile and install the module with the required permissions.
Please Log in or Create an account to join the conversation.