PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
driver.h
Go to the documentation of this file.
1 
15 #ifndef _DRIVER_H
16 #define _DRIVER_H
17 
18 #include <stdio.h>
19 #include <sys/driver.h>
20 
21 #ifdef __GNUC__
22 
23 #define INCLUDE_DRIVER(x) extern _Driver x; __asm__("\t.global\t_" #x);
24 
25 void _InitIO(void) __attribute__((constructor));
26 
27 #else
28 
29 #define INCLUDE_DRIVER(x) extern _Driver x; _Driver *x ## _fp = &x;
30 
31 void _InitIO(void);
32 
33 #endif
34 
35 
36 
37 #endif
_InitIO
void _InitIO(void)
driver.h
Contains driver API for stdio devices.