1. autotest
1.1. Function description:
This demo shows LGPIO auto test.
Configure two gpio_pins, LGPO_PIN0 as input and LGPO_PIN1 as output, and connect through IO connection informatio.
1.2. Test result:
It is judged by writing data to the output port of LGPIO1 and reading data from the input port of LGPIO0, if output IO as same as input IO, printf pass,if not printf fail.
1.3. IO connection:
PAD |
PAD |
|---|---|
pad_lgpio0_pin0 |
pad_lgpio0_pin1 |