kpilot/lib
pilotLinkVersion.h00001 #ifndef PILOTLINKVERSION_H
00002 #define PILOTLINKVERSION_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #include <pi-version.h>
00035
00036 #ifndef PILOT_LINK_VERSION
00037 #error "You need at least pilot-link version 0.9.5"
00038 #endif
00039
00040
00041 #define PILOT_LINK_NUMBER ((10000*PILOT_LINK_VERSION) + \
00042 (100*PILOT_LINK_MAJOR)+PILOT_LINK_MINOR)
00043 #define PILOT_LINK_0_10_0 (1000)
00044 #define PILOT_LINK_0_11_0 (1100)
00045 #define PILOT_LINK_0_11_8 (1108)
00046 #define PILOT_LINK_0_12_0 (1200)
00047
00048 #if PILOT_LINK_NUMBER < PILOT_LINK_0_11_8
00049 #warning "You need at least pilot-link version 0.11.8 for modern devices"
00050 #endif
00051
00052 #if PILOT_LINK_NUMBER < PILOT_LINK_0_12_0
00053 #define PI_SIZE_T int
00054 #else
00055 #define PI_SIZE_T size_t
00056 #endif
00057
00058
00059 #endif
00060
|