diff --git a/arch/xtensa/src/common/xtensa_initialize.c b/arch/xtensa/src/common/xtensa_initialize.c index 9a5b8c6a26..5bf57ad3f8 100644 --- a/arch/xtensa/src/common/xtensa_initialize.c +++ b/arch/xtensa/src/common/xtensa_initialize.c @@ -150,7 +150,7 @@ void up_initialize(void) /* Initialize the internal heap */ -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM xtensa_imm_initialize(); #endif diff --git a/arch/xtensa/src/common/xtensa_mm.h b/arch/xtensa/src/common/xtensa_mm.h index 81a60cbc78..bfb75b539c 100644 --- a/arch/xtensa/src/common/xtensa_mm.h +++ b/arch/xtensa/src/common/xtensa_mm.h @@ -34,7 +34,7 @@ * Pre-processor Macros ****************************************************************************/ -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM # define UMM_MALLOC(s) xtensa_imm_malloc(s) # define UMM_MEMALIGN(a,s) xtensa_imm_memalign(a,s) # define UMM_FREE(p) xtensa_imm_free(p) diff --git a/arch/xtensa/src/esp32/Make.defs b/arch/xtensa/src/esp32/Make.defs index f214634b25..fd34a7c1d1 100644 --- a/arch/xtensa/src/esp32/Make.defs +++ b/arch/xtensa/src/esp32/Make.defs @@ -99,7 +99,7 @@ endif CHIP_CSRCS += esp32_rtc.c -ifeq ($(CONFIG_XTENSA_USE_SEPERATE_IMEM),y) +ifeq ($(CONFIG_XTENSA_USE_SEPARATE_IMEM),y) CHIP_CSRCS += esp32_imm.c endif diff --git a/arch/xtensa/src/esp32/esp32_spi.c b/arch/xtensa/src/esp32/esp32_spi.c index fa38e99d39..494f1d1186 100644 --- a/arch/xtensa/src/esp32/esp32_spi.c +++ b/arch/xtensa/src/esp32/esp32_spi.c @@ -869,14 +869,14 @@ static void esp32_spi_dma_exchange(FAR struct esp32_spi_priv_s *priv, uint8_t *rp; uint32_t n; uint32_t regval; -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM uint8_t *alloctp; uint8_t *allocrp; #endif /* If the buffer comes from PSRAM, allocate a new one from DRAM */ -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(txbuffer)) { alloctp = xtensa_imm_malloc(total); @@ -890,7 +890,7 @@ static void esp32_spi_dma_exchange(FAR struct esp32_spi_priv_s *priv, tp = (uint8_t *)txbuffer; } -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(rxbuffer)) { allocrp = xtensa_imm_malloc(total); @@ -962,7 +962,7 @@ static void esp32_spi_dma_exchange(FAR struct esp32_spi_priv_s *priv, rp += n; } -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(rxbuffer)) { memcpy(rxbuffer, allocrp, total); @@ -970,7 +970,7 @@ static void esp32_spi_dma_exchange(FAR struct esp32_spi_priv_s *priv, } #endif -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(txbuffer)) { xtensa_imm_free(alloctp); diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c b/arch/xtensa/src/esp32/esp32_spiflash.c index cd95afc581..eb077c7579 100644 --- a/arch/xtensa/src/esp32/esp32_spiflash.c +++ b/arch/xtensa/src/esp32/esp32_spiflash.c @@ -1051,7 +1051,7 @@ static ssize_t esp32_read(FAR struct mtd_dev_s *dev, off_t offset, finfo("esp32_read(%p, 0x%x, %d, %p)\n", dev, offset, nbytes, buffer); #endif -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(buffer)) { tmpbuff = xtensa_imm_malloc(nbytes); @@ -1085,7 +1085,7 @@ static ssize_t esp32_read(FAR struct mtd_dev_s *dev, off_t offset, #endif error_with_buffer: -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(buffer)) { memcpy(buffer, tmpbuff, (ret == OK) ? nbytes : 0); @@ -1170,7 +1170,7 @@ static ssize_t esp32_write(FAR struct mtd_dev_s *dev, off_t offset, return -EINVAL; } -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(buffer)) { tmpbuff = xtensa_imm_malloc(nbytes); @@ -1210,7 +1210,7 @@ static ssize_t esp32_write(FAR struct mtd_dev_s *dev, off_t offset, #endif error_with_buffer: -#ifdef CONFIG_XTENSA_USE_SEPERATE_IMEM +#ifdef CONFIG_XTENSA_USE_SEPARATE_IMEM if (esp32_ptr_extram(buffer)) { xtensa_imm_free(tmpbuff);