agbabi 2.1.5
Added __agbabi_poll_ewram
for detecting "overclockable" EWRAM.
Example:
#include <agbabi.h>
#define REG_MEMCTL (*(volatile int*) 0x4000800)
int main() {
if (__agbabi_poll_ewram()) {
/* It is (probably) safe to activate fast EWRAM */
REG_MEMCTL = 0x0E000020;
}
}
What's Changed
- convert to unified assembler syntax by @LunarLambda in #18
Full Changelog: v2.1.4...v2.1.5