Ben Tyner | 9ae5ca4 | 2020-02-28 13:13:50 -0600 | [diff] [blame] | 1 | #include <libpdbg.h> |
2 | |||||
3 | #include <attn/attn_handler.hpp> | ||||
4 | |||||
5 | // The attnHandler() function is called when the an attention GPIO event is | ||||
6 | // triggered. We call it here directly to simulatea a GPIO event. | ||||
7 | int main() | ||||
8 | { | ||||
9 | int rc = 0; // return code | ||||
10 | |||||
11 | // initialize pdbg targets | ||||
12 | pdbg_targets_init(nullptr); | ||||
13 | |||||
14 | // exercise attention gpio event path | ||||
15 | attn::attnHandler(false); | ||||
16 | |||||
17 | return rc; | ||||
18 | } |