equal
deleted
inserted
replaced
23 #ifndef __APPLICFG_LINUX__ |
23 #ifndef __APPLICFG_LINUX__ |
24 #define __APPLICFG_LINUX__ |
24 #define __APPLICFG_LINUX__ |
25 |
25 |
26 #include <string.h> |
26 #include <string.h> |
27 #include <stdio.h> |
27 #include <stdio.h> |
28 |
|
29 #include "cancfg.h" |
|
30 #include "timerscfg.h" |
|
31 |
28 |
32 // Define the architecture : little_endian or big_endian |
29 // Define the architecture : little_endian or big_endian |
33 // ----------------------------------------------------- |
30 // ----------------------------------------------------- |
34 // Test : |
31 // Test : |
35 // UNS32 v = 0x1234ABCD; |
32 // UNS32 v = 0x1234ABCD; |
63 #define UNS32 unsigned long |
60 #define UNS32 unsigned long |
64 #define UNS24 |
61 #define UNS24 |
65 #define UNS40 |
62 #define UNS40 |
66 #define UNS48 |
63 #define UNS48 |
67 #define UNS56 |
64 #define UNS56 |
68 #define UNS64 |
65 #define UNS64 unsigned long long |
69 |
66 |
70 // Reals |
67 // Reals |
71 #define REAL32 float |
68 #define REAL32 float |
72 #define REAL64 double |
69 #define REAL64 double |
73 |
70 |
94 #else |
91 #else |
95 # define MSG_WAR(num, str, val) |
92 # define MSG_WAR(num, str, val) |
96 #endif |
93 #endif |
97 |
94 |
98 #endif |
95 #endif |
|
96 |
|
97 #define CAN_HANDLE void* |
|
98 |
|
99 #define MS_TO_TIMEVAL(ms) ms*US_TO_TIMEVAL_FACTOR*1000 |
|
100 #define US_TO_TIMEVAL(us) us*US_TO_TIMEVAL_FACTOR |
|
101 |
|
102 #define TASK_HANDLE pthread_t |