mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-30 22:05:21 +00:00
fix(soc): Refactor variable names for MPI operations and block bases
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -93,7 +93,7 @@ static inline bool mpi_ll_check_memory_init_complete(void)
|
||||
|
||||
static inline void mpi_ll_start_op(mpi_op_t op)
|
||||
{
|
||||
DPORT_REG_WRITE(MPI_LL_OPERATIONS[op], 1);
|
||||
DPORT_REG_WRITE(MPI_OPERATIONS_REG[op], 1);
|
||||
}
|
||||
|
||||
static inline bool mpi_ll_get_int_status(void)
|
||||
@@ -115,7 +115,7 @@ static inline bool mpi_ll_get_int_status(void)
|
||||
*/
|
||||
static inline void mpi_ll_write_to_mem_block(mpi_param_t param, size_t offset, const uint32_t* p, size_t n, size_t num_words)
|
||||
{
|
||||
uint32_t mem_base = MPI_LL_BLOCK_BASES[param] + offset;
|
||||
uint32_t mem_base = MPI_BLOCK_BASES[param] + offset;
|
||||
uint32_t copy_words = MIN(num_words, n);
|
||||
|
||||
/* Copy MPI data to memory block registers */
|
||||
@@ -150,12 +150,12 @@ static inline void mpi_ll_write_m_prime(uint32_t Mprime)
|
||||
|
||||
static inline void mpi_ll_write_rinv(uint32_t rinv)
|
||||
{
|
||||
DPORT_REG_WRITE(MPI_LL_BLOCK_BASES[MPI_PARAM_Z], rinv);
|
||||
DPORT_REG_WRITE(MPI_BLOCK_BASES[MPI_PARAM_Z], rinv);
|
||||
}
|
||||
|
||||
static inline void mpi_ll_write_at_offset(mpi_param_t param, int offset, uint32_t value)
|
||||
{
|
||||
uint32_t mem_base = MPI_LL_BLOCK_BASES[param] + offset;
|
||||
uint32_t mem_base = MPI_BLOCK_BASES[param] + offset;
|
||||
DPORT_REG_WRITE(mem_base, value);
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ static inline void mpi_ll_write_at_offset(mpi_param_t param, int offset, uint32_
|
||||
static inline void mpi_ll_read_from_mem_block(uint32_t* p, size_t n, size_t num_words)
|
||||
{
|
||||
HAL_ASSERT(n >= num_words);
|
||||
uint32_t mem_base = MPI_LL_BLOCK_BASES[MPI_PARAM_Z];
|
||||
uint32_t mem_base = MPI_BLOCK_BASES[MPI_PARAM_Z];
|
||||
/* Copy data from memory block registers */
|
||||
esp_dport_access_read_buffer(p, mem_base, num_words);
|
||||
|
||||
|
Reference in New Issue
Block a user