Skip to content

Commit 2f238f2

Browse files
committed
docs(GPIO): Updated Kernel driver doc with examples
Updates Linux Kernel GPIO doc with user space examples and resources. Adjusts formatting. Signed-off-by: Jonas Wood <[email protected]>
1 parent 06ea27d commit 2f238f2

File tree

1 file changed

+6
-2
lines changed
  • source/linux/Foundational_Components/Kernel/Kernel_Drivers

1 file changed

+6
-2
lines changed

source/linux/Foundational_Components/Kernel/Kernel_Drivers/GPIO.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ Example: Using GPIOs with the *libgpiod* library in user space to toggle a GPIO
162162
$ gpioset -c 2 23=0
163163
^C
164164
165-
- *Note: '^C' (Ctrl + C) interrupts the command, else the command would not terminate on its own. Use '^C' (Ctrl + C) to stop the command, and the new GPIO value will still remain.*
165+
- Note:
166+
167+
- In Bash, *'^C' (Ctrl + C)* exits the command with *SIGINT*, else the *gpioset* command would not exit on its own. For more info, refer to the *3.7.6 Signals* section in the GNU Bash manual: https://www.gnu.org/software/bash/manual/bash.html.
168+
169+
- The new GPIO value will remain until an exit signal, like *SIGKILL*, *SIGTERM*, or *SIGINT*; after that, its value is not guaranteed. For more info, reference the *Description* section of the *gpioset* man page: https://libgpiod.readthedocs.io/en/latest/gpioset.html.
166170

167171
- This should have turned the active-high LED "LD11" on the SK-AM62B-P1 on and off.
168172

@@ -188,7 +192,7 @@ Example: Using GPIOs with the *libgpiod* library in user space to toggle a GPIO
188192
189193
- For more info on *gpioset*, see its man page: https://libgpiod.readthedocs.io/en/latest/gpioset.html.
190194

191-
For more command-line tools, refer to the *libgpiod* documentation: https://libgpiod.readthedocs.io/en/latest/gpio_tools.html.
195+
- For more command-line tools, refer to the *libgpiod* documentation: https://libgpiod.readthedocs.io/en/latest/gpio_tools.html.
192196

193197
Example: Using GPIOs on the Raspberry Pi Compatible 40-pin Header on the SK-AM62B-P1 board:
194198

0 commit comments

Comments
 (0)