Skip to content

Commit 2da6ac8

Browse files
sylvioalveswmrsouza
authored andcommitted
attributes: add soc capabilities
Allow esp_attr.h file to retrieve SOC capabilities from soc_caps.h. This also removes the " CONFIG_" prefix from FAST and SLOW options as there is no Kconfig for that. Signed-off-by: Sylvio Alves <[email protected]>
1 parent 9151d22 commit 2da6ac8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/esp_common/include/esp_attr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ extern "C" {
1212
#endif
1313

1414
#include "sdkconfig.h"
15+
#include "soc/soc_caps.h"
1516

1617
#define ROMFN_ATTR
1718

@@ -61,7 +62,7 @@ extern "C" {
6162
// Use as esp_rom_printf(DRAM_STR("Hello world!\n"));
6263
#define DRAM_STR(str) (__extension__({static const DRAM_ATTR char __c[] = (str); (const char *)&__c;}))
6364

64-
#if CONFIG_SOC_RTC_FAST_MEM_SUPPORTED || CONFIG_SOC_RTC_SLOW_MEM_SUPPORTED
65+
#if SOC_RTC_FAST_MEM_SUPPORTED || SOC_RTC_SLOW_MEM_SUPPORTED
6566
// Forces data into RTC memory. See "docs/deep-sleep-stub.rst"
6667
// Any variable marked with this attribute will keep its value
6768
// during a deep sleep / wake cycle.

0 commit comments

Comments
 (0)