Compare commits
7 Commits
eff52ac1bb
...
74e1fc31b9
Author | SHA1 | Date |
---|---|---|
Rekai Nyangadzayi Musuka | 74e1fc31b9 | |
Rekai Nyangadzayi Musuka | 2dbbfab206 | |
Rekai Nyangadzayi Musuka | 10aa5e3788 | |
Rekai Nyangadzayi Musuka | fc94249954 | |
Rekai Nyangadzayi Musuka | 5bc8068876 | |
Rekai Nyangadzayi Musuka | 32983d9450 | |
Rekai Nyangadzayi Musuka | e55e632901 |
|
@ -68,8 +68,6 @@ pub const Gpio = struct {
|
||||||
log.info("Device: {}", .{kind});
|
log.info("Device: {}", .{kind});
|
||||||
|
|
||||||
const self = try allocator.create(Self);
|
const self = try allocator.create(Self);
|
||||||
errdefer allocator.destroy(self);
|
|
||||||
|
|
||||||
self.* = .{
|
self.* = .{
|
||||||
.data = 0b0000,
|
.data = 0b0000,
|
||||||
.direction = 0b1111, // TODO: What is GPIO DIrection set to by default?
|
.direction = 0b1111, // TODO: What is GPIO DIrection set to by default?
|
||||||
|
|
Loading…
Reference in New Issue