Revision ce12e797 test/periphery-lld/button_v1/aos_test_button.c
| test/periphery-lld/button_v1/aos_test_button.c | ||
|---|---|---|
| 62 | 62 |
((aos_test_buttondata_t*)test->data)->evtsource != NULL); |
| 63 | 63 |
|
| 64 | 64 |
// local variables |
| 65 |
aos_testresult_t result = {0, 0};
|
|
| 65 |
aos_testresult_t result; |
|
| 66 | 66 |
int32_t status; |
| 67 | 67 |
unsigned int count = 0; |
| 68 | 68 |
button_lld_state_t bstate; |
| 69 | 69 |
event_listener_t evtlistener; |
| 70 | 70 |
aos_timestamp_t tcurrent, tend; |
| 71 | 71 |
|
| 72 |
aosTestResultInit(&result); |
|
| 73 |
|
|
| 72 | 74 |
chprintf(stream, "test interrupts for ten seconds...\n"); |
| 73 | 75 |
chEvtRegister(((aos_test_buttondata_t*)test->data)->evtsource, &evtlistener, INTERRUPT_EVENT_ID); |
| 74 | 76 |
status = APAL_STATUS_OK; |
Also available in: Unified diff