Loading...
Searching...
No Matches
gpiodev_linux.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Benjamin Valentin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for
6 * more details.
7 */
8
9#pragma once
10
41
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
59int gpio_linux_setup(const char* device);
60
67
68#ifdef __cplusplus
69}
70#endif
71
void gpio_linux_teardown(void)
shutdown GPIO subsystem
int gpio_linux_setup(const char *device)
register /dev/gpiochip* device to be used for GPIO