fix(soc/esp32h2): Fix llperi_rng_data field discrepancy

This commit is contained in:
harshal.patil 2023-11-16 16:58:39 +05:30
parent 8558aa4414
commit a168fde297
No known key found for this signature in database
GPG Key ID: 5B5EC97C35B9A2E5
2 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -144,13 +144,13 @@ extern "C" {
* need_des
*/
#define LPPERI_RNG_DATA_REG (DR_REG_LPPERI_BASE + 0x8)
/** LPPERI_RND_DATA : RO; bitpos: [31:0]; default: 0;
/** LPPERI_RNG_DATA : RO; bitpos: [31:0]; default: 0;
* need_des
*/
#define LPPERI_RND_DATA 0xFFFFFFFFU
#define LPPERI_RND_DATA_M (LPPERI_RND_DATA_V << LPPERI_RND_DATA_S)
#define LPPERI_RND_DATA_V 0xFFFFFFFFU
#define LPPERI_RND_DATA_S 0
#define LPPERI_RNG_DATA 0xFFFFFFFFU
#define LPPERI_RND_GATA_M (LPPERI_RND_GATA_V << LPPERI_RND_GATA_S)
#define LPPERI_RND_GATA_V 0xFFFFFFFFU
#define LPPERI_RND_GATA_S 0
/** LPPERI_CPU_REG register
* need_des

View File

@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -104,10 +104,10 @@ typedef union {
*/
typedef union {
struct {
/** rnd_data : RO; bitpos: [31:0]; default: 0;
/** rng_data : RO; bitpos: [31:0]; default: 0;
* need_des
*/
uint32_t rnd_data:32;
uint32_t rng_data:32;
};
uint32_t val;
} lpperi_rng_data_reg_t;