Skip to content

Commit 5863b66

Browse files
committed
fix(soc): Fix incorrect reserved bits calculation in xts_pseudo_round_conf
1 parent 3dd1ad9 commit 5863b66

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/soc/esp32h2/register/soc/spi_mem_struct.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -1039,7 +1039,7 @@ typedef volatile struct spi_mem_dev_s {
10391039
uint32_t reg_pseudo_rng_cnt : 3; /*xts aes peseudo function base round that must be performed.*/
10401040
uint32_t reg_pseudo_base : 4; /*xts aes peseudo function base round that must be performed.*/
10411041
uint32_t reg_pseudo_inc : 2; /*xts aes peseudo function increment round that will be performed randomly between 0 & 2**(inc+1).*/
1042-
uint32_t reserved11 : 27; /*reserved*/
1042+
uint32_t reserved11 : 21; /*reserved*/
10431043
};
10441044
uint32_t val;
10451045
} xts_pseudo_round_conf;
@@ -1080,6 +1080,11 @@ typedef volatile struct spi_mem_dev_s {
10801080
} spi_mem_dev_t;
10811081
extern spi_mem_dev_t SPIMEM0;
10821082
extern spi_mem_dev_t SPIMEM1;
1083+
1084+
#ifndef __cplusplus
1085+
_Static_assert(sizeof(spi_mem_dev_t) == 0x400, "Invalid size of spi_mem_dev_t structure");
1086+
#endif
1087+
10831088
#ifdef __cplusplus
10841089
}
10851090
#endif

0 commit comments

Comments
 (0)