Exemple #1
0
void system_setup(void)
{
    clock_setup();
    mco_setup();
    usb_setup();
    systick_setup();
    rng_setup();
    battery_setup();

    speaker_setup();
    jack_setup();
    // setup pad and screen
    interface_setup();

    // setup and reset SAM2695
    sam2695_setup();
    wait_ms(100);
    sam2695_reset();

    usbmidi_setup();

    // init gfx and fill screen
    gfx_init(ssd1306_drawpixel, SSD1306_WIDTH, SSD1306_HEIGHT, GFX_FONT_SMALL);
    gfx_setRotation(GFX_ROT_180);
    gfx_fillScreen(OLED_BLACK);
    gfx_setTextColor(OLED_WHITE, OLED_BLACK);
//    gfx_setTextWrap(1);
    gfx_setTextSize(1);
    ssd1306_display();
}
Exemple #2
0
int main()
{
    // Set up low level systems:
    bus_setup();
    io_setup();
    periods_setup();
    memory_setup();
    task_setup();
    midi_io_setup();
    apu_setup();
    battery_setup();
    assigner_setup();
    sequencer_setup();
    ui_sequencer_setup();
    ui_programmer_setup();

    // The task manager takes over from here
    task_manager();
}