X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c7a59f885d9372e0a8695f6906587a2fa0931e20..8d4f51f588c481e79479d5502691a68c682b08d7:/package/switch/src/gpio.h?ds=sidebyside diff --git a/package/switch/src/gpio.h b/package/switch/src/gpio.h index f4fadfc64..90bafd39e 100644 --- a/package/switch/src/gpio.h +++ b/package/switch/src/gpio.h @@ -8,10 +8,18 @@ #ifndef __GPIO_H #define __GPIO_H -#ifdef BROADCOM +#ifdef CONFIG_BCM47XX #include "gpio-bcm947xx.h" #else -#error "Unsupported configuration." +#warning "Unsupported configuration." + +#define gpio_in() (-1U) +#define gpio_out(mask, value) (-1U) +#define gpio_outen(mask, value) (-1U) +#define gpio_control(mask, value) (-1U) +#define gpio_intmask(mask, value) (-1U) +#define gpio_intpolarity(mask, value) (-1U) + #endif #endif /* __GPIO_H */