mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-25 15:44:13 -06:00
linux: userspace GPIO control
Allow use host GPIO pins for non-realtime purposes. Signed-off-by: Andrey Kunitsyn <blackicebox@gmail.com>
This commit is contained in:
parent
f0c394de81
commit
8fd330c54e
10 changed files with 187 additions and 22 deletions
|
@ -53,7 +53,7 @@ set_non_blocking(int fd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
set_close_on_exec(int fd)
|
||||
{
|
||||
int ret = fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue