Espressif ESP32-S2 Programming Manual page 1103

Table of Contents

Advertisement

Chapter 2. API Reference
CONFIG_SPI_MASTER_IN_IRAM
Place transmitting functions of SPI master into IRAM
Found in:
Component config
Normally only the ISR of SPI master is placed in the IRAM, so that it can work without the flash when
interrupt is triggered. For other functions, there's some possibility that the flash cache miss when
running inside and out of SPI functions, which may increase the interval of SPI transactions. Enable
this to put queue\_trans, get\_trans\_result and transmit functions into the IRAM to
avoid possible cache miss.
During unit test, this is enabled to measure the ideal case of api.
Default value:
• No (disabled)
CONFIG_SPI_MASTER_ISR_IN_IRAM
Place SPI master ISR function into IRAM
Found in:
Component config
Place the SPI master ISR in to IRAM to avoid possible cache miss.
Also you can forbid the ISR being disabled during flash writing access,
ESP_INTR_FLAG_IRAM when initializing the driver.
Default value:
• Yes (enabled)
CONFIG_SPI_SLAVE_IN_IRAM
Place transmitting functions of SPI slave into IRAM
Found in:
Component config
Normally only the ISR of SPI slave is placed in the IRAM, so that it can work without the flash when
interrupt is triggered. For other functions, there's some possibility that the flash cache miss when
running inside and out of SPI functions, which may increase the interval of SPI transactions. Enable
this to put queue\_trans, get\_trans\_result and transmit functions into the IRAM to
avoid possible cache miss.
Default value:
• No (disabled)
CONFIG_SPI_SLAVE_ISR_IN_IRAM
Place SPI slave ISR function into IRAM
Found in:
Component config
Place the SPI slave ISR in to IRAM to avoid possible cache miss.
Also you can forbid the ISR being disabled during flash writing access,
ESP_INTR_FLAG_IRAM when initializing the driver.
Default value:
• Yes (enabled)
TWAI configuration
Contains:
CONFIG_TWAI_ISR_IN_IRAM
Espressif Systems
>
Driver configurations
>
SPI configuration
>
Driver configurations
>
SPI configuration
>
Driver configurations
>
SPI configuration
>
Driver configurations
>
SPI configuration
1092
Submit Document Feedback
by add
by add
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF