Skip to content

Commit

Permalink
fix(soc/esp32h2): Update the description of the ECDSA_WORK_MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
esp-jiangguangming committed Sep 5, 2023
1 parent 1af5e87 commit 89f6c6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/soc/esp32h2/include/soc/ecdsa_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions components/soc/esp32h2/include/soc/ecdsa_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 89f6c6d

Please sign in to comment.