prepare for interrupt support in the next few days
[my-code/arm.git] / betty / betty.c
index 093232b..d10456e 100644 (file)
@@ -41,6 +41,7 @@ const char d2_txt[]="- alphablend -";
 
 int main() {
 
+       /* variables */
        t_button button;
        u8 contrast;
 
@@ -48,6 +49,12 @@ int main() {
        pll_init();
        pin_init();
        ext_mem_init();
+
+       /* memory mapping - dirty! */
+       if((void *)announce<(void *)FLASH_BANK0)
+               mmap_init(MEMTYPE_RAM);
+       else
+               mmap_init(MEMTYPE_EXT);
        
        /* uart init */
        uart0_init();