Revision f3ac1c96 unittests/periphery-lld/src/ut_alld_mpr121.c
| unittests/periphery-lld/src/ut_alld_mpr121.c | ||
|---|---|---|
| 20 | 20 |
|
| 21 | 21 |
#if ((AMIROOS_CFG_TESTS_ENABLE == true) && defined(AMIROLLD_CFG_USE_MPR121)) || defined(__DOXYGEN__) |
| 22 | 22 |
|
| 23 |
/******************************************************************************/ |
|
| 24 |
/* LOCAL DEFINITIONS */ |
|
| 25 |
/******************************************************************************/ |
|
| 23 | 26 |
#include <aos_debug.h> |
| 24 | 27 |
#include <chprintf.h> |
| 25 | 28 |
#include <aos_thread.h> |
| ... | ... | |
| 27 | 30 |
|
| 28 | 31 |
#define INTERRUPT_EVENT_ID 1 |
| 29 | 32 |
|
| 33 |
/******************************************************************************/ |
|
| 34 |
/* EXPORTED VARIABLES */ |
|
| 35 |
/******************************************************************************/ |
|
| 36 |
|
|
| 37 |
/******************************************************************************/ |
|
| 38 |
/* LOCAL TYPES */ |
|
| 39 |
/******************************************************************************/ |
|
| 40 |
|
|
| 41 |
/******************************************************************************/ |
|
| 42 |
/* LOCAL VARIABLES */ |
|
| 43 |
/******************************************************************************/ |
|
| 44 |
|
|
| 45 |
/******************************************************************************/ |
|
| 46 |
/* LOCAL FUNCTIONS */ |
|
| 47 |
/******************************************************************************/ |
|
| 48 |
|
|
| 49 |
/******************************************************************************/ |
|
| 50 |
/* EXPORTED FUNCTIONS */ |
|
| 51 |
/******************************************************************************/ |
|
| 52 |
|
|
| 30 | 53 |
aos_utresult_t utAlldMpr121Func(BaseSequentialStream* stream, aos_unittest_t* ut) |
| 31 | 54 |
{
|
| 32 | 55 |
aosDbgCheck(ut->data != NULL && ((ut_mpr121data_t*)ut->data)->mprd != NULL); |
Also available in: Unified diff