From 6b9b7d78a09d6633fed7c1cddc7c40042e45c13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 24 Oct 2021 21:58:52 +0200 Subject: [PATCH] Add v1.3.1 to supported hardware revisions --- stm-firmware/hw-version-detect.c | 3 +++ stm-firmware/include/reflow-controller/hw-version-detect.h | 2 ++ stm-firmware/shell.c | 3 +++ 3 files changed, 8 insertions(+) diff --git a/stm-firmware/hw-version-detect.c b/stm-firmware/hw-version-detect.c index 784ada7..64df7f4 100644 --- a/stm-firmware/hw-version-detect.c +++ b/stm-firmware/hw-version-detect.c @@ -64,6 +64,9 @@ enum hw_revision get_pcb_hardware_version(void) case 1U: revision = HW_REV_V1_3; break; + case 2U: + revision = HW_REV_V1_3_1; + break; default: revision = HW_REV_ERROR; } diff --git a/stm-firmware/include/reflow-controller/hw-version-detect.h b/stm-firmware/include/reflow-controller/hw-version-detect.h index 65a2cc9..ef9721a 100644 --- a/stm-firmware/include/reflow-controller/hw-version-detect.h +++ b/stm-firmware/include/reflow-controller/hw-version-detect.h @@ -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_V1_2 = 120, /**< @brief Hardware Revision v1.2 */ 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. * 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.1 the return value is 131 (HW_REV_V1_3_1). * * Other return values are not defined yet. * diff --git a/stm-firmware/shell.c b/stm-firmware/shell.c index 87c8ed9..ee5855c 100644 --- a/stm-firmware/shell.c +++ b/stm-firmware/shell.c @@ -87,6 +87,9 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t handle, case HW_REV_V1_3: hw_rev_str = "Hardware: v1.3"; break; + case HW_REV_V1_3_1: + hw_rev_str = "Hardware: v1.3.1"; + break; default: hw_rev_str = "Hardware: Unknown Revision. You might have to update the firmware!"; break;