mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
34 lines
631 B
C
34 lines
631 B
C
/*
|
|
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "sdkconfig.h"
|
|
#include "esp_rom_sys.h"
|
|
#include "assert.h"
|
|
|
|
uint32_t Cache_Get_IROM_MMU_End(void)
|
|
{
|
|
#if CONFIG_IDF_TARGET_ESP32S3
|
|
return 0x800;
|
|
#elif CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32H2
|
|
return 0x200;
|
|
#else
|
|
assert(false);
|
|
#endif
|
|
}
|
|
|
|
uint32_t Cache_Get_DROM_MMU_End(void)
|
|
{
|
|
#if CONFIG_IDF_TARGET_ESP32S3
|
|
return 0x800;
|
|
#elif CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32H2
|
|
return 0x200;
|
|
#else
|
|
assert(false);
|
|
#endif
|
|
}
|