mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +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 --------------
|
// -------------- UART 0 --------------
|
||||||
uint32_t status = READ_PERI_REG(UART_INT_ST(0));
|
uint32_t status = READ_PERI_REG(UART_INT_ST(0));
|
||||||
|
@ -67,9 +67,11 @@ typedef enum {
|
|||||||
|
|
||||||
#ifdef ICACHE_FLASH
|
#ifdef ICACHE_FLASH
|
||||||
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
|
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
|
||||||
|
#define ICACHE_RAM_ATTR __attribute__((section(".text")))
|
||||||
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
|
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
|
||||||
#else
|
#else
|
||||||
#define ICACHE_FLASH_ATTR
|
#define ICACHE_FLASH_ATTR
|
||||||
|
#define ICACHE_RAM_ATTR
|
||||||
#define ICACHE_RODATA_ATTR
|
#define ICACHE_RODATA_ATTR
|
||||||
#endif /* ICACHE_FLASH */
|
#endif /* ICACHE_FLASH */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user