PX4 Firmware
PX4 Autopilot Software http://px4.io
ver.c File Reference

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>
Include dependency graph for ver.c:

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"
 

Detailed Description

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.

Author
Vladimir Kulla ufon@.nosp@m.kull.nosp@m.aonli.nosp@m.ne.n.nosp@m.et

Definition in file ver.c.

Function Documentation

◆ usage()

static void usage ( const char *  reason)
static

Definition at line 62 of file ver.c.

References ver_main().

Referenced by ver_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ mcu_ver_str

const char mcu_ver_str[] = "mcu"
static

Definition at line 59 of file ver.c.

Referenced by ver_main().

◆ px4_guid_str

const char px4_guid_str[] = "px4guid"
static

Definition at line 60 of file ver.c.

Referenced by ver_main().

◆ sz_ver_all_str

const char sz_ver_all_str[] = "all"
static

Definition at line 58 of file ver.c.

Referenced by ver_main().

◆ sz_ver_bdate_str

const char sz_ver_bdate_str[] = "bdate"
static

Definition at line 55 of file ver.c.

Referenced by ver_main().

◆ sz_ver_buri_str

const char sz_ver_buri_str[] = "uri"
static

Definition at line 56 of file ver.c.

Referenced by ver_main().

◆ sz_ver_gcc_str

const char sz_ver_gcc_str[] = "gcc"
static

Definition at line 57 of file ver.c.

Referenced by ver_main().

◆ sz_ver_git_str

const char sz_ver_git_str[] = "git"
static

Definition at line 54 of file ver.c.

Referenced by ver_main().

◆ sz_ver_hw_str

const char sz_ver_hw_str[] = "hw"
static

Definition at line 51 of file ver.c.

Referenced by ver_main().

◆ sz_ver_hwcmp_str

const char sz_ver_hwcmp_str[] = "hwcmp"
static

Definition at line 52 of file ver.c.

Referenced by ver_main().

◆ sz_ver_hwtypecmp_str

const char sz_ver_hwtypecmp_str[] = "hwtypecmp"
static

Definition at line 53 of file ver.c.

Referenced by ver_main().