developing drivers for custom boards
- btvpimill
- Offline
- Elite Member
- Posts: 229
- Thank you received: 3
function read
function write
In that order. Does that mean the read will be first then the write or is that controlled by the HAL file?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23559
- Thank you received: 4858
but how do I tell it to always generate the start but never worry about the reset? Or if I need to keep the reset thread in there, how to not actually send the reset to the port?.
Setting the space_length to zero in the HAL file does this.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23559
- Thank you received: 4858
Yup, another thing came to mind. In the comp file I have:
function read
function write
In that order. Does that mean the read will be first then the write or is that controlled by the HAL file?
The execution order is set by the HAL file, it is the order that the functions are added to the thread in.
Please Log in or Create an account to join the conversation.
- btvpimill
- Offline
- Elite Member
- Posts: 229
- Thank you received: 3
This way I can not worry about having the threads in the wrong order.
Now PCW may have already suggested I do it this way, But I took his advice to mean a single address write then clock all the data both ways. So PCW, if you did mean that, it only took me a week to come around and see it - LOL
Please Log in or Create an account to join the conversation.
- btvpimill
- Offline
- Elite Member
- Posts: 229
- Thank you received: 3
sudo comp --install/somewhere/eppdriver.comp
here are the errors:
ruby@ruby-desktop:~$ sudo comp --install /home/ruby/emc2/configs/eppdriver.comp
[sudo] password for ruby:
Traceback (most recent call last):
File "/usr/bin/comp", line 1321, in <module>
main()
File "/usr/bin/comp", line 1290, in main
process(f, mode, outfile)
File "/usr/bin/comp", line 1164, in process
a, b = parse(filename)
File "/usr/bin/comp", line 404, in parse
a, b = f.split("\n;;\n", 1)
ValueError: need more than 1 value to unpack
ruby@ruby-desktop:~$
now not really knowing if thesew are errors, warnings, or flat out failures, I tried to load it in my hal file:
loadrt eppdriver ioaddr=0x378
won't load, message after all the intresting stuff is:
can't find module 'eppdriver' in usr/realtime......
I looked and in fact it is not there. So I can only assume there was a real problem with the comp --install? The comp file is the one I posted here with only the base_address +3 changes
Please Log in or Create an account to join the conversation.
- btvpimill
- Offline
- Elite Member
- Posts: 229
- Thank you received: 3
Please Log in or Create an account to join the conversation.
- btvpimill
- Offline
- Elite Member
- Posts: 229
- Thank you received: 3
www.linuxcnc.org/component/option,com_ku...tart,0/lang,english/
I am not clear to how the OP resolved the same exact error I have, But I am going to make sure the file is "clean" Update in just a bit.
Please Log in or Create an account to join the conversation.
- btvpimill
- Offline
- Elite Member
- Posts: 229
- Thank you received: 3
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
John
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
- Posts: 7330
- Thank you received: 1177
component constant;
pin out float out;
param r float value = 1.0;
function _;
license "GPL";
;;
FUNCTION(_) {
out = value;
}
Please Log in or Create an account to join the conversation.