From 9ed6944c0dd66b8c66b0c48260b1a699b602e0af Mon Sep 17 00:00:00 2001 From: Jiang Guang Ming Date: Mon, 4 Sep 2023 16:07:39 +0800 Subject: [PATCH] fix(soc/esp32h2): Update the description of the ECDSA_WORK_MODE --- components/soc/esp32h2/include/soc/ecdsa_reg.h | 4 ++-- components/soc/esp32h2/include/soc/ecdsa_struct.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/soc/esp32h2/include/soc/ecdsa_reg.h b/components/soc/esp32h2/include/soc/ecdsa_reg.h index b68718ec5d..62f2e1ad96 100644 --- a/components/soc/esp32h2/include/soc/ecdsa_reg.h +++ b/components/soc/esp32h2/include/soc/ecdsa_reg.h @@ -16,8 +16,8 @@ extern "C" { */ #define ECDSA_CONF_REG (DR_REG_ECDSA_BASE + 0x4) /** ECDSA_WORK_MODE : R/W; bitpos: [0]; default: 0; - * The work mode bits of ECDSA Accelerator. 0: Signature Generate Mode. 1: Signature - * Verify Mode. + * The work mode bits of ECDSA Accelerator. 0: Signature Verify mode. 1: Signature + * Generate Mode. */ #define ECDSA_WORK_MODE (BIT(0)) #define ECDSA_WORK_MODE_M (ECDSA_WORK_MODE_V << ECDSA_WORK_MODE_S) diff --git a/components/soc/esp32h2/include/soc/ecdsa_struct.h b/components/soc/esp32h2/include/soc/ecdsa_struct.h index 4693e7e900..dcdd806f8f 100644 --- a/components/soc/esp32h2/include/soc/ecdsa_struct.h +++ b/components/soc/esp32h2/include/soc/ecdsa_struct.h @@ -19,8 +19,8 @@ extern "C" { typedef union { struct { /** work_mode : R/W; bitpos: [0]; default: 0; - * The work mode bits of ECDSA Accelerator. 0: Signature Generate Mode. 1: Signature - * Verify Mode. + * The work mode bits of ECDSA Accelerator. 0: Signature Verify Mode. 1: Signature + * Generate Mode. */ uint32_t work_mode:1; /** ecc_curve : R/W; bitpos: [1]; default: 0;