1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples/embedded/esp32/esp-c3dev/main/gpio.h
Andy Green 06e881aad6 esp32c3
Add
2021-08-31 05:45:40 +01:00

25 lines
700 B
C

/*
* lws genric gpio
*
* Written in 2010-2020 by Andy Green <andy@warmcat.com>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
* You should typedef _lws_plat_gpio_t to int or whatever before
* including this. It's better to wrap this in a platform-specific
* include that does that and then include the platform-specific
* include in your code.
*/
#if !defined(__LWS_GPIO_H__)
#define __LWS_GPIO_H__
typedef struct lws_gpio_ops {
void (*mode_write)(_lws_plat_gpio_t gpio);
void (*mode_read)(_lws_plat_gpio_t gpio);
int (*read)(_lws_plat_gpio_t gpio);
void (*set)(_lws_plat_gpio_t gpio, int val);
} lws_gpio_ops_t;
#endif