Add v1.3.1 to supported hardware revisions
This commit is contained in:
parent
22bb227bc7
commit
6b9b7d78a0
@ -64,6 +64,9 @@ enum hw_revision get_pcb_hardware_version(void)
|
|||||||
case 1U:
|
case 1U:
|
||||||
revision = HW_REV_V1_3;
|
revision = HW_REV_V1_3;
|
||||||
break;
|
break;
|
||||||
|
case 2U:
|
||||||
|
revision = HW_REV_V1_3_1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
revision = HW_REV_ERROR;
|
revision = HW_REV_ERROR;
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@ enum hw_revision {
|
|||||||
HW_REV_ERROR = 1, /**< @brief The hardware revision could not be detected due to an internal error */
|
HW_REV_ERROR = 1, /**< @brief The hardware revision could not be detected due to an internal error */
|
||||||
HW_REV_V1_2 = 120, /**< @brief Hardware Revision v1.2 */
|
HW_REV_V1_2 = 120, /**< @brief Hardware Revision v1.2 */
|
||||||
HW_REV_V1_3 = 130, /**< @brief Hardware Revision v1.3 */
|
HW_REV_V1_3 = 130, /**< @brief Hardware Revision v1.3 */
|
||||||
|
HW_REV_V1_3_1 = 131, /**< @brief Hardware revision v1.3.1 */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -70,6 +71,7 @@ enum hw_revision {
|
|||||||
* The function returns the HW revision as an enum hw_revision.
|
* The function returns the HW revision as an enum hw_revision.
|
||||||
* For v1.2 the return value is 120 (HW_REV_V1_2).
|
* For v1.2 the return value is 120 (HW_REV_V1_2).
|
||||||
* For v1.3 the return value is 130 (HW_REV_V1_3).
|
* For v1.3 the return value is 130 (HW_REV_V1_3).
|
||||||
|
* For v1.3.1 the return value is 131 (HW_REV_V1_3_1).
|
||||||
*
|
*
|
||||||
* Other return values are not defined yet.
|
* Other return values are not defined yet.
|
||||||
*
|
*
|
||||||
|
@ -87,6 +87,9 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t handle,
|
|||||||
case HW_REV_V1_3:
|
case HW_REV_V1_3:
|
||||||
hw_rev_str = "Hardware: v1.3";
|
hw_rev_str = "Hardware: v1.3";
|
||||||
break;
|
break;
|
||||||
|
case HW_REV_V1_3_1:
|
||||||
|
hw_rev_str = "Hardware: v1.3.1";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
hw_rev_str = "Hardware: Unknown Revision. You might have to update the firmware!";
|
hw_rev_str = "Hardware: Unknown Revision. You might have to update the firmware!";
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user