Revision f3ac1c96 unittests/periphery-lld/src/ut_alld_bq27500.c
| unittests/periphery-lld/src/ut_alld_bq27500.c | ||
|---|---|---|
| 21 | 21 |
#if ((AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_USE_BQ27500)) || defined(__DOXYGEN__) |
| 22 | 22 |
|
| 23 | 23 |
#include <string.h> |
| 24 |
|
|
| 25 |
/******************************************************************************/ |
|
| 26 |
/* LOCAL DEFINITIONS */ |
|
| 27 |
/******************************************************************************/ |
|
| 24 | 28 |
#include <aos_debug.h> |
| 25 | 29 |
#include <chprintf.h> |
| 26 | 30 |
#include <aos_thread.h> |
| ... | ... | |
| 41 | 45 |
|
| 42 | 46 |
#endif |
| 43 | 47 |
|
| 48 |
/******************************************************************************/ |
|
| 49 |
/* EXPORTED VARIABLES */ |
|
| 50 |
/******************************************************************************/ |
|
| 51 |
|
|
| 52 |
/******************************************************************************/ |
|
| 53 |
/* LOCAL TYPES */ |
|
| 54 |
/******************************************************************************/ |
|
| 55 |
|
|
| 56 |
/******************************************************************************/ |
|
| 57 |
/* LOCAL VARIABLES */ |
|
| 58 |
/******************************************************************************/ |
|
| 59 |
|
|
| 60 |
/******************************************************************************/ |
|
| 61 |
/* LOCAL FUNCTIONS */ |
|
| 62 |
/******************************************************************************/ |
|
| 63 |
|
|
| 44 | 64 |
bq27500_lld_control_status_t _try_unseal(BQ27500Driver* driver, uint16_t key0, uint16_t key1, apalTime_t timeout) {
|
| 45 | 65 |
uint16_t dst; |
| 46 | 66 |
bq27500_lld_control_status_t ctrl; |
| ... | ... | |
| 254 | 274 |
chprintf(stream, "\t\tfailed, no keys could be found"); |
| 255 | 275 |
} |
| 256 | 276 |
|
| 277 |
/******************************************************************************/ |
|
| 278 |
/* EXPORTED FUNCTIONS */ |
|
| 279 |
/******************************************************************************/ |
|
| 280 |
|
|
| 257 | 281 |
aos_utresult_t utAlldBq27500Func(BaseSequentialStream* stream, aos_unittest_t* ut) |
| 258 | 282 |
{
|
| 259 | 283 |
aosDbgCheck(ut->data != NULL && ((ut_bq27500data_t*)(ut->data))->driver != NULL); |
Also available in: Unified diff