указала другой уровень оптимизации для обработчиков прерываний
This commit is contained in:
1 parent
067284dd0b
commit
9d4483f9e9
3 files changed
+3
-3
No files matched your search
@@ -140,7 +140,7 @@ void HardwareSerial::rx_complete_irq(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// wrapper for use in С-files
|
// wrapper for use in С-files
|
||||||
extern "C" void serial_interrupt_handler(uint8_t uartNumInt)
|
extern "C" void __attribute__((optimize("O3"))) serial_interrupt_handler(uint8_t uartNumInt)
|
||||||
{
|
{
|
||||||
if (uartNumInt == 0)
|
if (uartNumInt == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class HardwareSerial : public Stream
|
|||||||
using Print::write; // pull in write(str)
|
using Print::write; // pull in write(str)
|
||||||
operator bool() { return isInited; }
|
operator bool() { return isInited; }
|
||||||
|
|
||||||
void rx_complete_irq(void);
|
void rx_complete_irq(void) __attribute__((optimize("O3")));
|
||||||
};
|
};
|
||||||
|
|
||||||
extern HardwareSerial Serial;
|
extern HardwareSerial Serial;
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ void enableInterrupt(uint8_t interruptNum)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// common gpio interrupt handler
|
// common gpio interrupt handler
|
||||||
void gpio_interrupt_handler(void) __attribute__((noinline, section(".ram_text")));
|
void gpio_interrupt_handler(void) __attribute__((noinline, section(".ram_text"), optimize("O3")));
|
||||||
void gpio_interrupt_handler(void)
|
void gpio_interrupt_handler(void)
|
||||||
{
|
{
|
||||||
// go through all the interrupts and call the handler for the triggered line
|
// go through all the interrupts and call the handler for the triggered line
|
||||||
|
|||||||
Reference in new issue
Block a user