From 3319c24c6da91bf75348e99a531910a354d767c7 Mon Sep 17 00:00:00 2001
From: schneider <schneider@blinkenlichts.net>
Date: Fri, 8 Jul 2011 01:30:22 +0200
Subject: [PATCH] 2k space for applets

---
 firmware/Makefile.inc            | 2 +-
 firmware/applications/executor.c | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/firmware/Makefile.inc b/firmware/Makefile.inc
index d4cafc1..1983ef8 100644
--- a/firmware/Makefile.inc
+++ b/firmware/Makefile.inc
@@ -7,7 +7,7 @@
 TARGET = LPC13xx
 FLASH = 32K
 SRAM = 8K
-RAMCODE=1K
+RAMCODE=2K
 
 # For USB HID support the LPC134x reserves 384 bytes from the sram,
 # if you don't want to use the USB features, just use 0 here.
diff --git a/firmware/applications/executor.c b/firmware/applications/executor.c
index fb9281e..03d9637 100644
--- a/firmware/applications/executor.c
+++ b/firmware/applications/executor.c
@@ -50,7 +50,7 @@ void execute_file (const char * fname){
     UINT readbytes;
     void (*dst)(void);
 
-    dst=(void (*)(void)) 0x10001c00;
+    dst=(void (*)(void)) 0x10001800;
 
     res=f_open(&file, fname, FA_OPEN_EXISTING|FA_READ);
     put_rc(res);
@@ -58,7 +58,7 @@ void execute_file (const char * fname){
         return;
     };
 
-    res = f_read(&file, (char *)dst, 1024, &readbytes);
+    res = f_read(&file, (char *)dst, 2048, &readbytes);
     put_rc_y(res,8);
     if(res){
         return;
@@ -79,6 +79,7 @@ void execute_file (const char * fname){
 
 void main_executor(void) {
 
+    lcdSetPixel(0,0,0); //the spaceinvader module needs this
     backlightInit();
 
     //disable the JTAG on PIO3_3