cmvr_head/packages/erpc-1.14.0/erpc_c/port/erpc_sysgpio.h
2025-12-30 15:44:41 +08:00

32 lines
509 B
C

/*
* Copyright 2020 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _ERPC_SYSGPIO_H_
#define _ERPC_SYSGPIO_H_
#if __cplusplus
extern "C" {
#endif
#define ERPC_SYSGPIO_STATUS_SUCCESS 0
int gpio_export(int gpio);
int gpio_direction(int gpio, int direction);
int gpio_set_edge(int gpio, char *edge);
int gpio_read(int gpio);
int gpio_open(int gpio);
int gpio_close(int fd);
int gpio_poll(int fd, int timeout);
#if __cplusplus
}
#endif
#endif /* _ERPC_SYSGPIO_H_ */