You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/drivers/hal_gpio.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,15 +52,15 @@ gpiochip0 - 54 lines:
52
52
...
53
53
----
54
54
55
-
A list of input and/or output pins should be specified as shown in the sample above. (the \ character is used for line continuation in HAL, and is used to improve readability. The pin names are case-sensitive and there must be no spaces in the strings, either beteen the comma-separated pins lists of the "=" signs.
55
+
A list of input and/or output pins should be specified as shown in the sample above. (The \ character is used for line continuation in HAL, and is used to improve readability. The pin names are case-sensitive and there must be no spaces in the strings, either beteen the comma-separated pins lists of the "=" signs.)
56
56
57
57
Additional modifiers are:
58
58
*invert* (valid for outputs only). Inverts the sense of the physical pin relative to the value in HAL.
59
59
60
60
*reset* (valid for outputs only). If any pins are allocated to the "reset" list than a HAL parameter *hal_gpio.reset_ns* will be created. This will have no effect unless the *hal_gpio.reset* function is added to a realtime thread. This should be placed after the *hal_gpio.write* function and must be in the same thread. The behaviour of this function is equivalent to the same function in the *hal_parport* driver, and it allows a step pulse every thread cycle. If the *hal_gpio.reset_ns* time is set longer than 1/4 of the period of the thread that it is added to, then the value will be reduced to 1/4 the thread period. There is a lower limit to how long the pulse can be. With 8 pins in the output list the pulse width can not reduce lower than 5000ns on a Pi4, for example.
61
61
62
62
The following functions are accepted in all versions, but are only effective if a version of libgpiod_dev >= 1.6 is installed.
63
-
They should be used in the same way as the parameters described above, and will alter the electrical paramters of the GPIO pins *if* this is supported by the hardware.
63
+
They should be used in the same way as the parameters described above, and will alter the electrical parameters of the GPIO pins *if* this is supported by the hardware.
These default entries should work fine in most situations. Some systems may need to use 'linuxcnc/nc_files/examples/'
990
+
These default entries should work fine in most situations. Some systems may need to use 'linuxcnc/nc_files/examples/'
991
991
instead of 'linuxcnc/nc_files/'. please check that paths are valid. Custom entries pointing to modified file are possible.
992
992
993
993
[source,{ini}]
@@ -1058,11 +1058,12 @@ Z = -2
1058
1058
==== The Python Section
1059
1059
1060
1060
The Python section sets up what files LinuxCNC's Python interpreter looks for, e.g., `toplevel.py` file in the `python` folder in the configuration directory:
1061
-
These default entries should work fine in most situations. Some systems may need to use 'linuxcnc/nc_files/examples/'
1062
-
instead of 'linuxcnc/nc_files/'. Custom entries pointing to modified file are possible.
1061
+
These default entries should work fine in most situations. Some systems may need to use 'linuxcnc/nc_files/examples/' instead of 'linuxcnc/nc_files/'.
1062
+
Custom entries pointing to modified file are possible.
1063
+
1063
1064
[source,{ini}]
1064
1065
----
1065
-
# The path start point for all remap searches ie. python's sys.path.append()
1066
+
# The path start point for all remap searches, i.e. Python's sys.path.append()
0 commit comments