Skip to content

Commit

Permalink
fix(CMSIS): Regenerate trng_regs.h using correct SVD file for MAX32670 (
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyung-maxim authored Aug 10, 2023
1 parent 2fa4a0a commit bb5e6af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 1 addition & 7 deletions Libraries/CMSIS/Device/Maxim/MAX32670/Include/max32670.svd
Original file line number Diff line number Diff line change
Expand Up @@ -8775,17 +8775,11 @@
<bitWidth>1</bitWidth>
</field>
<field>
<name>AESKG_USR</name>
<name>KEYGEN</name>
<description>AES Key Generate. When enabled, the key for securing NVSRAM is generated and transferred to the secure key register automatically without user visibility or intervention. This bit is cleared by hardware once the key has been transferred to the secure key register.</description>
<bitOffset>3</bitOffset>
<bitWidth>1</bitWidth>
</field>
<field>
<name>AESKG_SYS</name>
<description>AESKG_SYS.</description>
<bitOffset>4</bitOffset>
<bitWidth>1</bitWidth>
</field>
<field>
<name>KEYWIPE</name>
<description>To wipe the Battery Backed key.</description>
Expand Down
7 changes: 2 additions & 5 deletions Libraries/CMSIS/Device/Maxim/MAX32670/Include/trng_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,8 @@ typedef struct {
#define MXC_F_TRNG_CTRL_HEALTH_EN_POS 2 /**< CTRL_HEALTH_EN Position */
#define MXC_F_TRNG_CTRL_HEALTH_EN ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_HEALTH_EN_POS)) /**< CTRL_HEALTH_EN Mask */

#define MXC_F_TRNG_CTRL_AESKG_USR_POS 3 /**< CTRL_AESKG_USR Position */
#define MXC_F_TRNG_CTRL_AESKG_USR ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_USR_POS)) /**< CTRL_AESKG_USR Mask */

#define MXC_F_TRNG_CTRL_AESKG_SYS_POS 4 /**< CTRL_AESKG_SYS Position */
#define MXC_F_TRNG_CTRL_AESKG_SYS ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_SYS_POS)) /**< CTRL_AESKG_SYS Mask */
#define MXC_F_TRNG_CTRL_KEYGEN_POS 3 /**< CTRL_KEYGEN Position */
#define MXC_F_TRNG_CTRL_KEYGEN ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_KEYGEN_POS)) /**< CTRL_KEYGEN Mask */

#define MXC_F_TRNG_CTRL_KEYWIPE_POS 15 /**< CTRL_KEYWIPE Position */
#define MXC_F_TRNG_CTRL_KEYWIPE ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_KEYWIPE_POS)) /**< CTRL_KEYWIPE Mask */
Expand Down

0 comments on commit bb5e6af

Please sign in to comment.