mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-09 02:37:31 +01:00
Fix a typo in the instructions on using omap3's gpio interface.
Using the example for reading a gpio, shows the problem. NULL should be the gpio number. Signed-off-by: Tom Rix <Tom.Rix@windriver.com> Acked-by: Dirk Behme <dirk.behme@googlemail.com>
This commit is contained in:
parent
0c9520efd6
commit
7caa13fdd2
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ To clear a bit :
|
|||
To read a bit :
|
||||
|
||||
if (!omap_request_gpio(N)) {
|
||||
omap_set_gpio_direction(NULL, 1);
|
||||
omap_set_gpio_direction(N, 1);
|
||||
val = omap_get_gpio_datain(N);
|
||||
omap_free_gpio(N);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue