1d4afb5ceSopenharmony_ci/* 2d4afb5ceSopenharmony_ci * lws genric gpio 3d4afb5ceSopenharmony_ci * 4d4afb5ceSopenharmony_ci * Written in 2010-2020 by Andy Green <andy@warmcat.com> 5d4afb5ceSopenharmony_ci * 6d4afb5ceSopenharmony_ci * This file is made available under the Creative Commons CC0 1.0 7d4afb5ceSopenharmony_ci * Universal Public Domain Dedication. 8d4afb5ceSopenharmony_ci * 9d4afb5ceSopenharmony_ci * You should typedef _lws_plat_gpio_t to int or whatever before 10d4afb5ceSopenharmony_ci * including this. It's better to wrap this in a platform-specific 11d4afb5ceSopenharmony_ci * include that does that and then include the platform-specific 12d4afb5ceSopenharmony_ci * include in your code. 13d4afb5ceSopenharmony_ci */ 14d4afb5ceSopenharmony_ci 15d4afb5ceSopenharmony_ci#if !defined(__LWS_GPIO_H__) 16d4afb5ceSopenharmony_ci#define __LWS_GPIO_H__ 17d4afb5ceSopenharmony_ci 18d4afb5ceSopenharmony_citypedef struct lws_gpio_ops { 19d4afb5ceSopenharmony_ci void (*mode_write)(_lws_plat_gpio_t gpio); 20d4afb5ceSopenharmony_ci void (*mode_read)(_lws_plat_gpio_t gpio); 21d4afb5ceSopenharmony_ci int (*read)(_lws_plat_gpio_t gpio); 22d4afb5ceSopenharmony_ci void (*set)(_lws_plat_gpio_t gpio, int val); 23d4afb5ceSopenharmony_ci} lws_gpio_ops_t; 24d4afb5ceSopenharmony_ci 25d4afb5ceSopenharmony_ci#endif 26