Newer
Older
Atmosphere / fusee / src / main.c
@Kate J. Temkin Kate J. Temkin on 3 Apr 2018 628 bytes fusee: fix critical rendering bug
#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();

    // Set up the display, and register it as a printk provider.
    lfb_base = display_init_framebuffer();
    video_init(lfb_base);

    // Always enable the backlight _after_ the display is initialized,
    // to avoid flickering.
    display_enable_backlight(true);

    // Say hello.
    printk("Welcome to Atmosph\xe8re Fus\xe9" "e!\n");
    printk("Using color linear framebuffer at 0x%p!\n", lfb_base);

    /* Do nothing for now */
    return 0;
}