Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LeapPad2 now is working quite well as a retro emulator console
#6
In the source I was sent it seems the last model was codenamed VTK; the relevant portion of the code is:

Code:
static void init_vtk(void)
{
    
#define LF2000_GPIO_EXTENDER_BASE 0xC00
    printk(KERN_WARNING "%s: VTK GPIO mapping\n", __func__);

    gpio_map[BUTTON_RED]        = LF2000_GPIO_EXTENDER_BASE + 7;
    gpio_map[BUTTON_B]        = LF2000_GPIO_EXTENDER_BASE + 8;
    gpio_map[BUTTON_A]        = LF2000_GPIO_EXTENDER_BASE + 9;
    gpio_map[BUTTON_VOLUMEDOWN]    = LF2000_GPIO_EXTENDER_BASE + 10;
    gpio_map[BUTTON_VOLUMEUP]    = LF2000_GPIO_EXTENDER_BASE + 11;
    gpio_map[DPAD_RIGHT]        = LF2000_GPIO_EXTENDER_BASE + 12;
    gpio_map[DPAD_LEFT]        = LF2000_GPIO_EXTENDER_BASE + 13;
    gpio_map[DPAD_DOWN]        = LF2000_GPIO_EXTENDER_BASE + 14;
    gpio_map[DPAD_UP]        = LF2000_GPIO_EXTENDER_BASE + 15;
}
Reply


Messages In This Thread
RE: LeapPad2 now is working quite well as a retro emulator console - by Jabberwock - 12-27-2019, 01:00 PM

Forum Jump: