LPC uses integers while everyone else has a struct for each gpio block.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include "ao.h"
static const struct {
- void *port;
+ ao_gpio_t port;
uint8_t pin;
} ao_leds[] = {
#ifdef LED_0_PORT
#define HAS_TASK 1
#endif
+#ifndef AO_GPIO_TYPE
+#define AO_GPIO_TYPE void *
+#endif
+
+typedef AO_GPIO_TYPE ao_gpio_t;
typedef AO_PORT_TYPE ao_port_t;
#ifndef AO_TICK_TYPE
#define AO_STACK_SIZE 512
#endif
+#define AO_GPIO_TYPE uint8_t
#define AO_PORT_TYPE uint32_t
#define AO_LED_TYPE AO_PORT_TYPE