Skip to content

Commit

Permalink
fix(soc): Fix incorrect reserved bits calculation in xts_pseudo_round…
Browse files Browse the repository at this point in the history
…_conf
  • Loading branch information
Harshal5 committed Jan 20, 2025
1 parent 3dd1ad9 commit 5863b66
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/soc/esp32h2/register/soc/spi_mem_struct.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -1039,7 +1039,7 @@ typedef volatile struct spi_mem_dev_s {
uint32_t reg_pseudo_rng_cnt : 3; /*xts aes peseudo function base round that must be performed.*/
uint32_t reg_pseudo_base : 4; /*xts aes peseudo function base round that must be performed.*/
uint32_t reg_pseudo_inc : 2; /*xts aes peseudo function increment round that will be performed randomly between 0 & 2**(inc+1).*/
uint32_t reserved11 : 27; /*reserved*/
uint32_t reserved11 : 21; /*reserved*/
};
uint32_t val;
} xts_pseudo_round_conf;
Expand Down Expand Up @@ -1080,6 +1080,11 @@ typedef volatile struct spi_mem_dev_s {
} spi_mem_dev_t;
extern spi_mem_dev_t SPIMEM0;
extern spi_mem_dev_t SPIMEM1;

#ifndef __cplusplus
_Static_assert(sizeof(spi_mem_dev_t) == 0x400, "Invalid size of spi_mem_dev_t structure");
#endif

#ifdef __cplusplus
}
#endif

0 comments on commit 5863b66

Please sign in to comment.