aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 520fccd..74b5497 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,6 +4,7 @@
#include <task.h>
#include <gpio.h>
#include <lcd.h>
+#include <display.h>
#include <initrd.h>
#include <serial.h>
#include <parser.h>
@@ -100,9 +101,17 @@ void kmain(void)
{
asm("cpsie i");
- task_start(lcd_handler, 128);
- delay(200);
- task_start(task_interpreter, 4096);
+ dsp_init();
+ dsp_set_addr(0, 0, LCD_WIDTH, LCD_HEIGHT);
+ int w = LCD_WIDTH * LCD_HEIGHT;
+ do {
+ dsp_write_data(0);//c >> 8);
+ dsp_write_data(0);//c & 0xFF);
+ } while (w--);
+
+ //task_start(lcd_handler, 128);
+ //delay(200);
+ //task_start(task_interpreter, 4096);
//char *s = initrd_getfile("test.txt");