Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0bc2e22
usb.types.Len -> usb.types.PacketLen
piotrfila Nov 10, 2026
d8333e1
Reduce pointless return @as(...);
piotrfila Nov 10, 2026
722e032
USB-specific little-endian LeInt
piotrfila Nov 10, 2026
fe0d81a
usb.Config -> usb.Options; usb.Config.Configuration -> usb.Configuration
piotrfila Nov 10, 2026
8a99976
hid.zig -> HID.zig
piotrfila Nov 10, 2026
213c525
Move some usb.DeviceController functionality into usb.Configuration
piotrfila Nov 10, 2026
8bf2d55
Move configuration descriptor generation into usb.Configuration
piotrfila Nov 10, 2026
80e0fed
Cleanup usb a little
piotrfila Nov 11, 2026
1190090
Separate runtime in USB drivers
piotrfila Nov 11, 2026
fe3c7a1
Add usb echo example
piotrfila Nov 11, 2026
540c1fd
Redo USB Driver declaration API
piotrfila Nov 11, 2026
a3a2f6f
Move usb.Configuration into a separate file
piotrfila Nov 11, 2026
b2dc27b
Allow more freedom with descriptor and runtime generics
piotrfila Nov 11, 2026
12a25b8
Add documentation
piotrfila Nov 11, 2026
9523a87
Move runtime init back into Runtime
piotrfila Nov 11, 2026
bbadbaa
Introduce DeviceCapabilities struct
piotrfila Nov 11, 2026
89dd6ba
Revert unintended change
piotrfila Nov 11, 2026
688ff29
Allow allocation of an type in usb devices
piotrfila Nov 11, 2026
3253d5f
Introduce usb.HID_report
piotrfila Nov 11, 2026
a34e75c
Fix bug in HID driver
piotrfila Nov 11, 2026
8e99d8f
Reduce use of @This()
piotrfila Nov 11, 2026
77429ec
Automatic HID report struct generation
piotrfila Nov 11, 2026
f7038a3
Add more keycodes
piotrfila Nov 11, 2026
80783e6
Add some interface checks
piotrfila Nov 12, 2026
721975f
Fix typo
piotrfila Nov 12, 2026
652f3e3
One last fix
piotrfila Nov 12, 2026
779d1ef
Minor fixes
piotrfila Nov 15, 2026
a536074
feat(usb): Add suspend and resume support
vesim987 Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/allocator.zig
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ pub const Chunk = extern struct {
});

// Otherwise, just go for it.
return @as(*Chunk, @ptrCast(@alignCast(data_slice.ptr - header_size)));
return @ptrCast(@alignCast(data_slice.ptr - header_size));
}

/// Return a data slice that maps the chunk's memory the user can use.
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/arm_semihosting.zig
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ pub const Time = struct {

///return the host time in epoch
pub fn system_time() usize {
return @as(usize, @bitCast(sys_time()));
return @bitCast(sys_time());
}
///return the corrent tick counter value in centiseconds
pub fn absolute() TimeError!usize {
Expand Down
542 changes: 246 additions & 296 deletions core/src/core/usb.zig

Large diffs are not rendered by default.

Loading
Loading