From 13c4a6ccedd3649ef5f13e01296cb8f5cc3389c4 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Sun, 17 Sep 2017 01:41:59 -1000 Subject: [PATCH] HW Rev & Ver:0 for no value, -1 for not supported --- src/drivers/boards/common/board_common.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/drivers/boards/common/board_common.h b/src/drivers/boards/common/board_common.h index 4f123c87b5..dd10c1b50f 100644 --- a/src/drivers/boards/common/board_common.h +++ b/src/drivers/boards/common/board_common.h @@ -569,7 +569,7 @@ __EXPORT int board_set_bootload_mode(board_reset_e mode); * None * * Returned Value: - * a 0 terminated string defining the HW type. This my be a 0 length string "" + * a 0 terminated string defining the HW type. This may be a 0 length string "" * ************************************************************************************/ @@ -590,15 +590,15 @@ __EXPORT const char *board_get_hw_type_name(void); * * Returned Value: * An integer value of this boards hardware version. - * A value of 0 is the default for boards not supporting the BOARD_HAS_VERSIONING API. - * A value of -1 is the default for boards supporting the API but not having version. + * A value of -1 is the default for boards not supporting the BOARD_HAS_VERSIONING API. + * A value of 0 is the default for boards supporting the API but not having version. * ************************************************************************************/ #if defined(BOARD_HAS_VERSIONING) __EXPORT int board_get_hw_version(void); #else -#define board_get_hw_version() 0 +#define board_get_hw_version() (-1) #endif /************************************************************************************ @@ -612,15 +612,15 @@ __EXPORT int board_get_hw_version(void); * * Returned Value: * An integer value of this boards hardware revision. - * A value of 0 is the default for boards not supporting the BOARD_HAS_VERSIONING API. - * A value of -1 is the default for boards supporting the API but not having revision. + * A value of -1 is the default for boards not supporting the BOARD_HAS_VERSIONING API. + * A value of 0 is the default for boards supporting the API but not having revision. * ************************************************************************************/ #if defined(BOARD_HAS_VERSIONING) __EXPORT int board_get_hw_revision(void); #else -#define board_get_hw_revision() 0 +#define board_get_hw_revision() (-1) #endif #if !defined(BOARD_OVERRIDE_UUID)