Use IOCTL for board_read_VBUS_state in NuttX protected builds

Direct gpio read is not possible from user side applications, so use boardctl
interface instead.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-10-08 09:13:56 +03:00
committed by Beat Küng
parent 0cf3079401
commit 56c6120e83
2 changed files with 8 additions and 2 deletions
-1
View File
@@ -143,5 +143,4 @@ int CONFIG_USER_ENTRYPOINT(int argc, char *argv[])
return nsh_main(argc, argv);
}
#endif /* !CONFIG_BUILD_FLAT && !__KERNEL__ */