Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions core/src/core/arm_semihosting.zig
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub const fs = struct {
};

pub const FType = enum {
FIle,
File,
Device,
};
pub const OpenMode = enum(usize) {
Expand Down Expand Up @@ -390,7 +390,7 @@ pub const fs = struct {

pub fn get_type(file: File) FileError!FType {
return switch (sys_istty(&file)) {
0 => FType.FIle,
0 => FType.File,
1 => FType.Device,
else => FileError.InvalidFile,
};
Expand Down
2 changes: 1 addition & 1 deletion core/src/core/usb/drivers/EchoExample.zig
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub fn init(self: *@This(), desc: *const Descriptor, device: *usb.DeviceInterfac
.device = device,
.descriptor = desc,
.packet_buffer = data,
.tx_ready = .init(false),
.tx_ready = .init(true),
};
device.ep_listen(
desc.ep_out.endpoint.num,
Expand Down
4 changes: 2 additions & 2 deletions core/src/mmio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ pub fn Mmio(comptime Packed: type) type {
@as(FieldType, @enumFromInt(@as(U, @intFromEnum(@field(val, field_name))) ^
@as(U, @intFromEnum(@as(FieldType, value)))));
},
else => |T| {
@compileError("unsupported register field type '" ++ @typeName(T) ++ "'");
else => {
@compileError("unsupported register field type '" ++ @typeName(FieldType) ++ "'");
},
}
}
Expand Down
Loading