ver:Add support for HW versioning

1) Add hwtypecmp command to allow rc to further enumerate PX4FMU_V2
      for sub types of 'V2' -FMUv2  'V2M' PixhawkMini, 'V30' Cube

   2) Extend hw to report to display
      HW type
      HW version
      HW revision
This commit is contained in:
David Sidrane
2017-08-05 19:26:20 +02:00
committed by Lorenz Meier
parent afb01d015e
commit 4832ad3191
2 changed files with 62 additions and 0 deletions
+24
View File
@@ -66,6 +66,30 @@ static inline const char *px4_board_name(void)
return BOARD_NAME;
}
/**
* get the board sub type
*/
static inline const char *px4_board_sub_type(void)
{
return board_get_hw_type_name();
}
/**
* get the board HW version
*/
static inline int px4_board_hw_version(void)
{
return board_get_hw_version();
}
/**
* get the board HW revision
*/
static inline int px4_board_hw_revision(void)
{
return board_get_hw_revision();
}
/**
* get the build URI (used for crash logging)
*/