Revision ce12e797 test/periphery-lld/TPS20xxB_v1/aos_test_TPS20xxB.c
| test/periphery-lld/TPS20xxB_v1/aos_test_TPS20xxB.c | ||
|---|---|---|
| 58 | 58 |
aosDbgCheck(test->data != NULL && ((aos_test_tps20xxbdata_t*)test->data)->driver != NULL); |
| 59 | 59 |
|
| 60 | 60 |
// local variables |
| 61 |
aos_testresult_t result = {0, 0};
|
|
| 61 |
aos_testresult_t result; |
|
| 62 | 62 |
int32_t status; |
| 63 | 63 |
tps20xxb_lld_enable_t en; |
| 64 | 64 |
tps20xxb_lld_overcurrent_t oc; |
| 65 | 65 |
|
| 66 |
aosTestResultInit(&result); |
|
| 67 |
|
|
| 66 | 68 |
chprintf(stream, "write laser enable...\n"); |
| 67 | 69 |
status = tps20xxb_lld_set_enable(((aos_test_tps20xxbdata_t*)test->data)->driver, TPS20xxB_LLD_ENABLE); |
| 68 | 70 |
if (status == APAL_STATUS_SUCCESS) {
|
Also available in: Unified diff