 |
EVE 1.0
|
Go to the documentation of this file. 1 #ifndef DRIVER_PORT_INIT_GENERATOR_H_INCLUDED 2 #define DRIVER_PORT_INIT_GENERATOR_H_INCLUDED 42 #ifndef DRIVER_PORT_INIT_TABLE 43 #error DRIVER_PORT_INIT_TABLE must point to a header file with pin init values 48 #define PORTDEF_BEGIN(port) 49 #define PORTDEF_END(port) 50 #define PINDEF(port, name, pin, mode, value) \ 51 enum { name = (pin) }; \ 52 enum { name ## _PORT = (gpioPort ## port) }; 53 #define ALIAS_TABLE_BEGIN() 54 #define ALIAS_TABLE_END() 55 #define ALIAS(name, alias) \ 56 enum { name = (alias) }; \ 57 enum { name ## _PORT = (alias ## _PORT) }; 58 #include DRIVER_PORT_INIT_TABLE 62 #undef ALIAS_TABLE_BEGIN 63 #undef ALIAS_TABLE_END 66 #endif // DRIVER_PORT_INIT_GENERATOR_H_INCLUDED