mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
add new macro for force function to ram
move uart_interrupt_handler in ram
This commit is contained in:
committed by
Ivan Grokhotkov
parent
6a37b4461c
commit
bb5543160f
@ -101,7 +101,7 @@ UARTnr_t uart_get_debug();
|
||||
// ####################################################################################################
|
||||
// ####################################################################################################
|
||||
|
||||
void uart_interrupt_handler(uart_t* uart) {
|
||||
void ICACHE_RAM_ATTR uart_interrupt_handler(uart_t* uart) {
|
||||
|
||||
// -------------- UART 0 --------------
|
||||
uint32_t status = READ_PERI_REG(UART_INT_ST(0));
|
||||
|
@ -66,10 +66,12 @@ typedef enum {
|
||||
#define SHMEM_ATTR
|
||||
|
||||
#ifdef ICACHE_FLASH
|
||||
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
|
||||
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
|
||||
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
|
||||
#define ICACHE_RAM_ATTR __attribute__((section(".text")))
|
||||
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
|
||||
#else
|
||||
#define ICACHE_FLASH_ATTR
|
||||
#define ICACHE_RAM_ATTR
|
||||
#define ICACHE_RODATA_ATTR
|
||||
#endif /* ICACHE_FLASH */
|
||||
|
||||
|
Reference in New Issue
Block a user