]> git.gag.com Git - fw/altos/blobdiff - src/kernel/ao.h
src: Add more includes to ao.h
[fw/altos] / src / kernel / ao.h
index d714cecbd15e508c3705c0e6751ecae5db2bb475..0437cb07f3eb9929b680e4b4640b445d68414bbb 100644 (file)
 #ifndef _AO_H_
 #define _AO_H_
 
 #ifndef _AO_H_
 #define _AO_H_
 
-#include <stdint.h>
+#include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 #include <stddef.h>
+#include <stdarg.h>
 #include <stdbool.h>
 #include <ao_pins.h>
 #include <ao_arch.h>
 #include <stdbool.h>
 #include <ao_pins.h>
 #include <ao_arch.h>
@@ -40,6 +41,11 @@ extern char ao_getchar(void);
 #define HAS_TASK       1
 #endif
 
 #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
 typedef AO_PORT_TYPE ao_port_t;
 
 #ifndef AO_TICK_TYPE