HW Rev & Ver:0 for no value, -1 for not supported

This commit is contained in:
David Sidrane 2017-09-17 01:42:42 -10:00 committed by Daniel Agar
parent 7ae999ecb3
commit 7698c08eb7

View File

@ -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));