statedefs.h

00001 #ifndef STATEDEFS_H
00002 #define STATEDEFS_H
00003 
00004 typedef bool (*BootloaderStateMachineHandler)(u32 when, u8 * arg);
00005 
00006 #define XX(name) PS_##name
00007 #define XD ,
00008 #define XL ,
00009 enum {
00010 #include "pstates.inc"
00011   PS_MAX
00012 };
00013 #undef XX
00014 #undef XD
00015 #undef XL
00016 
00017 #define XX(name) static bool step##name(u32 when,u8 * packet)
00018 #define XD ;
00019 #define XL ;
00020 #include "pstates.inc"
00021 #undef XX
00022 #undef XD
00023 #undef XL
00024 
00025 #define XX(name) step##name
00026 #define XD ,
00027 #define XL
00028 const BootloaderStateMachineHandler (stepFunctions[PS_MAX]) = {
00029 #include "pstates.inc"
00030 };
00031 #undef XX
00032 #undef XD
00033 #undef XL
00034 
00035 #endif  /* STATEDEFS_H */

Generated on Fri Apr 22 06:54:11 2011 for SFB by doxygen 1.5.9