update: Kernel.pas changes to align with USB implementation
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

- Kernel.pas updated to init USB devices & check for hotplug.
- USB Poll removed given USB stack is now interrupt driven.
This commit is contained in:
t3hn3rd committed 2026-03-02 15:53:40 +00:00
1 parent 7bbcc44c5e
commit 547251dbd0
1 file changed
+7 -4
+7 -4
View File
@@ -43,8 +43,11 @@ uses
usbhub, usbhub,
usb_keyboard, usb_keyboard,
usb_mouse, usb_mouse,
usb_storage,
UHCI, UHCI,
OHCI, OHCI,
EHCI,
XHCI,
testdriver, testdriver,
E1000, E1000,
IDE, IDE,
@@ -267,19 +270,19 @@ begin
usbcore.UnitTest; usbcore.UnitTest;
UHCI.UnitTest; UHCI.UnitTest;
OHCI.UnitTest; OHCI.UnitTest;
EHCI.UnitTest;
XHCI.UnitTest;
usbhub.UnitTest; usbhub.UnitTest;
usb_keyboard.UnitTest; usb_keyboard.UnitTest;
usb_mouse.UnitTest; usb_mouse.UnitTest;
{ Main render loop } { Main render loop — USB completions are now interrupt-driven }
syslog.logln('KERNEL', 'Entering main render loop.'); syslog.logln('KERNEL', 'Entering main render loop.');
while true do begin while true do begin
usbcore.poll_all;
usb_keyboard.poll_keyboards;
usb_mouse.poll_mice;
desktop.update; desktop.update;
uidebug.update; uidebug.update;
lvgl_handler; lvgl_handler;
usbcore.usb_check_hotplug;
video.Flush(); video.Flush();
end; end;