40 #include <px4_platform_common/px4_config.h> 41 #include <px4_platform_common/module.h> 45 #include <arch/board/board.h> 46 #include <board_config.h> 53 PRINT_MODULE_DESCRIPTION(
"Utility to check if USB is connected. Was previously used in startup scripts.\n" 54 "A return value of 0 means USB is connected, 1 otherwise." 57 PRINT_MODULE_USAGE_NAME_SIMPLE(
"usb_connected",
"command");
68 return board_read_VBUS_state();
__EXPORT int usb_connected_main(int argc, char *argv[])
static void print_usage(void)