Skip to content

Missing IRAM_ATTR Macro? #41

@alxAgu

Description

@alxAgu

Hi, I was trying to use the supposed IRAM_ATTR attribute mentioned in the "2c-esp8266_non_os_sdk" reference manual (p. 158). But after looking everywhere I couldn't find the definition.

My c_types.h file doesn't seem to include it

//NONOS_SDK, c_types.h
#ifdef ICACHE_FLASH
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
#else
#define ICACHE_FLASH_ATTR
#define ICACHE_RODATA_ATTR
#endif /* ICACHE_FLASH */

while the RTOS_SDK does have it defined as:

//RTOS_SDK, c_types.h
#define IRAM_ATTR           __attribute__((section(".text")))

Am I missing something here?

Thanks.

A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions