mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-03-22 01:54:16 -05:00
36 lines
602 B
C++
36 lines
602 B
C++
#include "LinkWireless.hpp"
|
|
|
|
#ifdef LINK_WIRELESS_PUT_ISR_IN_IWRAM
|
|
|
|
LINK_WIRELESS_CODE_IWRAM void LinkWireless::_onSerial() {
|
|
#ifdef LINK_WIRELESS_ENABLE_NESTED_IRQ
|
|
interrupt = true;
|
|
LINK_WIRELESS_BARRIER;
|
|
Link::_REG_IME = 1;
|
|
#endif
|
|
|
|
__onSerial();
|
|
|
|
#ifdef LINK_WIRELESS_ENABLE_NESTED_IRQ
|
|
irqEnd();
|
|
#endif
|
|
}
|
|
LINK_WIRELESS_CODE_IWRAM void LinkWireless::_onTimer() {
|
|
#ifdef LINK_WIRELESS_ENABLE_NESTED_IRQ
|
|
if (interrupt)
|
|
return;
|
|
|
|
interrupt = true;
|
|
LINK_WIRELESS_BARRIER;
|
|
Link::_REG_IME = 1;
|
|
#endif
|
|
|
|
__onTimer();
|
|
|
|
#ifdef LINK_WIRELESS_ENABLE_NESTED_IRQ
|
|
irqEnd();
|
|
#endif
|
|
}
|
|
|
|
#endif
|