PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Version command, unifies way of showing versions of HW, SW, Build, GCC In case you want to add new version just extend version_main function. More...
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/module.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <version/version.h>
Go to the source code of this file.
Functions | |
static void | usage (const char *reason) |
__EXPORT int | ver_main (int argc, char *argv[]) |
Variables | |
static const char | sz_ver_hw_str [] = "hw" |
static const char | sz_ver_hwcmp_str [] = "hwcmp" |
static const char | sz_ver_hwtypecmp_str [] = "hwtypecmp" |
static const char | sz_ver_git_str [] = "git" |
static const char | sz_ver_bdate_str [] = "bdate" |
static const char | sz_ver_buri_str [] = "uri" |
static const char | sz_ver_gcc_str [] = "gcc" |
static const char | sz_ver_all_str [] = "all" |
static const char | mcu_ver_str [] = "mcu" |
static const char | px4_guid_str [] = "px4guid" |
Version command, unifies way of showing versions of HW, SW, Build, GCC In case you want to add new version just extend version_main function.
Definition in file ver.c.
|
static |
Definition at line 62 of file ver.c.
References ver_main().
Referenced by ver_main().
int ver_main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 91 of file ver.c.
References mcu_ver_str, px4_board_hw_revision(), px4_board_hw_version(), px4_board_name(), px4_board_sub_type(), px4_build_uri(), px4_firmware_git_branch(), px4_firmware_version(), px4_firmware_version_string(), px4_guid_str, px4_os_name(), px4_os_version(), px4_os_version_string(), px4_toolchain_name(), px4_toolchain_version(), sz_ver_all_str, sz_ver_bdate_str, sz_ver_buri_str, sz_ver_gcc_str, sz_ver_git_str, sz_ver_hw_str, sz_ver_hwcmp_str, sz_ver_hwtypecmp_str, and usage().
Referenced by usage().
|
static |
Definition at line 59 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 60 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 58 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 55 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 56 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 57 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 54 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 51 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 52 of file ver.c.
Referenced by ver_main().
|
static |
Definition at line 53 of file ver.c.
Referenced by ver_main().