Compare commits
8 Commits
74e1fc31b9
...
eff52ac1bb
| Author | SHA1 | Date | |
|---|---|---|---|
| eff52ac1bb | |||
| e60b556f72 | |||
| 3a3e6acc6a | |||
| 4b4bc7f894 | |||
| 325208d460 | |||
| f44a1a49fd | |||
| 1575f517a9 | |||
| 26dba16789 |
@@ -68,6 +68,8 @@ pub const Gpio = struct {
|
||||
log.info("Device: {}", .{kind});
|
||||
|
||||
const self = try allocator.create(Self);
|
||||
errdefer allocator.destroy(self);
|
||||
|
||||
self.* = .{
|
||||
.data = 0b0000,
|
||||
.direction = 0b1111, // TODO: What is GPIO DIrection set to by default?
|
||||
|
||||
Reference in New Issue
Block a user