fusee: add basic print-to-display console / printk

This commit is contained in:
Kate J. Temkin
2018-03-27 05:28:28 -06:00
parent 9ab7d66524
commit 57853602df
11 changed files with 14144 additions and 3 deletions

View File

@@ -1,10 +1,22 @@
#include "utils.h"
#include "hwinit.h"
#include "lib/printk.h"
#include "display/video_fb.h"
int main(void) {
u32 *lfb_base;
nx_hwinit();
display_init();
display_color_screen(0xFFFFFFFF);
// Set up the display, and register it as a printk provider.
lfb_base = display_init_framebuffer();
video_init(lfb_base);
// Say hello.
printk("Welcome to Atmosphere Fusee!\n");
printk("Using color linear framebuffer at 0x%p!\n", lfb_base);
/* Do nothing for now */
return 0;