From e9f6fdff803431b4ee2d7c31c0ca09c78d55341e Mon Sep 17 00:00:00 2001 From: Rodrigo Alfonso Date: Wed, 5 Feb 2025 03:11:00 -0300 Subject: [PATCH] Using -Os by default in ISR --- README.md | 4 ++-- lib/LinkWireless.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7f4f814..aebd0ad 100644 --- a/README.md +++ b/README.md @@ -314,8 +314,8 @@ You can update these values at any time without creating a new instance: - Depending on how much IWRAM you have available, you might want to tweak these knobs: * `LINK_WIRELESS_PUT_ISR_IN_IWRAM_SERIAL`: (default: `1`) Put the SERIAL ISR in IWRAM (recommended, since this handler runs ~20 times per frame) * `LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER`: (default: `1`) Put the TIMER ISR in IWRAM (not that necessary) - * `LINK_WIRELESS_PUT_ISR_IN_IWRAM_SERIAL_LEVEL`: (default: `"-Ofast"`) Optimization level for the SERIAL ISR - * `LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER_LEVEL`: (default: `"-Ofast"`) Optimization level for the TIMER ISR + * `LINK_WIRELESS_PUT_ISR_IN_IWRAM_SERIAL_LEVEL`: (default: `"-Os"`) Optimization level for the SERIAL ISR + * `LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER_LEVEL`: (default: `"-Os"`) Optimization level for the TIMER ISR - `LINK_WIRELESS_ENABLE_NESTED_IRQ`: to allow `LINK_WIRELESS_ISR_*` functions to be interrupted. This can be useful, for example, if your audio engine requires calling a VBlank handler with precise timing. # 💻 LinkWirelessMultiboot diff --git a/lib/LinkWireless.hpp b/lib/LinkWireless.hpp index dca4158..064b26c 100644 --- a/lib/LinkWireless.hpp +++ b/lib/LinkWireless.hpp @@ -122,10 +122,10 @@ #define LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER 1 #endif #ifndef LINK_WIRELESS_PUT_ISR_IN_IWRAM_SERIAL_LEVEL -#define LINK_WIRELESS_PUT_ISR_IN_IWRAM_SERIAL_LEVEL "-Ofast" +#define LINK_WIRELESS_PUT_ISR_IN_IWRAM_SERIAL_LEVEL "-Os" #endif #ifndef LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER_LEVEL -#define LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER_LEVEL "-Ofast" +#define LINK_WIRELESS_PUT_ISR_IN_IWRAM_TIMER_LEVEL "-Os" #endif //---