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