Revision f3ac1c96 unittests/periphery-lld/src/ut_alld_a3906.c
unittests/periphery-lld/src/ut_alld_a3906.c | ||
---|---|---|
27 | 27 |
#include <stdlib.h> |
28 | 28 |
#include <math.h> |
29 | 29 |
|
30 |
/******************************************************************************/ |
|
31 |
/* LOCAL DEFINITIONS */ |
|
32 |
/******************************************************************************/ |
|
33 |
|
|
30 | 34 |
/** |
31 | 35 |
* @brief Interval to poll QEI in certain tests. |
32 | 36 |
*/ |
... | ... | |
40 | 44 |
*/ |
41 | 45 |
#define QEI_DIFF_THRESHOLD (apalQEICount_t)(7000 * 0.02f) |
42 | 46 |
|
47 |
/******************************************************************************/ |
|
48 |
/* EXPORTED VARIABLES */ |
|
49 |
/******************************************************************************/ |
|
50 |
|
|
51 |
/******************************************************************************/ |
|
52 |
/* LOCAL TYPES */ |
|
53 |
/******************************************************************************/ |
|
54 |
|
|
43 | 55 |
/** |
44 | 56 |
* @brief Enumerator to distinguish between left and right wheel. |
45 | 57 |
*/ |
... | ... | |
56 | 68 |
DIRECTION_BACKWARD = 1, /**< backward direction identifier */ |
57 | 69 |
} direction_t; |
58 | 70 |
|
71 |
/******************************************************************************/ |
|
72 |
/* LOCAL VARIABLES */ |
|
73 |
/******************************************************************************/ |
|
74 |
|
|
75 |
/******************************************************************************/ |
|
76 |
/* LOCAL FUNCTIONS */ |
|
77 |
/******************************************************************************/ |
|
78 |
|
|
59 | 79 |
/** |
60 | 80 |
* @brief helper function to test each wheel and direction separately. |
61 | 81 |
* |
... | ... | |
175 | 195 |
} |
176 | 196 |
} |
177 | 197 |
|
198 |
/******************************************************************************/ |
|
199 |
/* EXPORTED FUNCTIONS */ |
|
200 |
/******************************************************************************/ |
|
201 |
|
|
178 | 202 |
/** |
179 | 203 |
* @brief A3905 unit test function. |
180 | 204 |
* |
Also available in: Unified diff