Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

debug: show touchscreen info in the hw debug screen on hibylinux targets

Also add this debug screen to the hiby r1 / r3proii targets.

Change-Id: Ia255571838baef9900f6b6a3c395c10b872f5f5a

+22 -2
+1 -1
apps/debug_menu.c
··· 2846 2846 { "Screendump", dbg_screendump }, 2847 2847 #endif 2848 2848 { "Skin Engine RAM usage", dbg_skin_engine }, 2849 - #if ((CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SONY_NWZ_LINUX) || (defined(HIBY_LINUX) && !defined(HIBY_R3PROII) && !defined(HIBY_R1)) || defined(FIIO_M3K_LINUX)) && !defined(SIMULATOR) 2849 + #if ((CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SONY_NWZ_LINUX) || defined(HIBY_LINUX) || defined(FIIO_M3K_LINUX)) && !defined(SIMULATOR) 2850 2850 { "View HW info", dbg_hw_info }, 2851 2851 #endif 2852 2852 #if (CONFIG_PLATFORM & PLATFORM_NATIVE)
+2
firmware/SOURCES
··· 163 163 target/hosted/hiby/usb-hiby-gadget.c 164 164 target/hosted/hiby/r3proii/button-r3proii.c 165 165 target/hosted/hiby/r3proii/powermgmt-r3proii.c 166 + target/hosted/hiby/debug-hiby.c 166 167 #ifndef BOOTLOADER 167 168 target/hosted/hiby/r3proii/led-r3proii.c 168 169 target/hosted/hiby/hibylinux_codec.c ··· 173 174 target/hosted/hiby/usb-hiby-gadget.c 174 175 target/hosted/hiby/r1/button-r1.c 175 176 target/hosted/hiby/r1/powermgmt-r1.c 177 + target/hosted/hiby/debug-hiby.c 176 178 #ifndef BOOTLOADER 177 179 target/hosted/hiby/r1/led-r1.c 178 180 target/hosted/hiby/hibylinux_codec.c
+2
firmware/export/touchscreen.h
··· 72 72 bool touchscreen_is_enabled(void); 73 73 #endif 74 74 75 + void touchscreen_last_state(int *x, int *y, int *state); 76 + 75 77 #endif /* __TOUCHSCREEN_INCLUDE_H_ */
+8
firmware/target/hosted/agptek/debug-agptek.c
··· 88 88 #endif 89 89 lcd_putsf(0, line++, "btn: 0x%x", btn); 90 90 91 + #ifdef HAVE_TOUCHSCREEN 92 + int x; 93 + int y; 94 + int state; 95 + touchscreen_last_state(&x, &y, &state); 96 + lcd_putsf(0, line++, "touch: x %d y %d st %d", x, y, state); 97 + #endif 98 + 91 99 lcd_update(); 92 100 sleep(HZ/16); 93 101 }
+8 -1
firmware/target/hosted/button-devinput.c
··· 107 107 108 108 // XXX ... figure out what is standard. 109 109 #define EVENT_VALUE_TOUCHSCREEN_PRESS 1 110 - #define EVENT_VALUE_TOUCHSCREEN_RELEASE -1 110 + #define EVENT_VALUE_TOUCHSCREEN_RELEASE 0 111 111 112 112 static int ts_enabled = 1; 113 + 114 + void touchscreen_last_state(int *x, int *y, int *state) 115 + { 116 + *x = _last_x; 117 + *y = _last_y; 118 + *state = _last_touch_state; 119 + } 113 120 114 121 void touchscreen_enable_device(bool en) 115 122 {
+1
firmware/target/hosted/hiby/debug-hiby.c
··· 1 + #include "../agptek/debug-agptek.c"