mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 03:04:08 +08:00
HW Rev & Ver:0 for no value, -1 for not supported
This commit is contained in:
parent
7ae999ecb3
commit
7698c08eb7
@ -120,8 +120,8 @@ __END_DECLS
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
#if defined(BOARD_HAS_SIMPLE_HW_VERSIONING)
|
||||
static int hw_version = -1;
|
||||
static int hw_revision = -1;
|
||||
static int hw_version = 0;
|
||||
static int hw_revision = 0;
|
||||
static char hw_type[4] = HW_VER_TYPE_INIT;
|
||||
#endif
|
||||
/****************************************************************************
|
||||
@ -229,7 +229,7 @@ __EXPORT void board_on_reset(int status)
|
||||
#if defined(BOARD_HAS_SIMPLE_HW_VERSIONING)
|
||||
static int determin_hw_version(int *version, int *revision)
|
||||
{
|
||||
*revision = -1; /* unknown */
|
||||
*revision = 0; /* default revision */
|
||||
int rv = 0;
|
||||
int pos = 0;
|
||||
stm32_configgpio(GPIO_PULLDOWN | (HW_VER_PB4 & ~GPIO_PUPD_MASK));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user