diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-02-18 17:46:52 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-02-18 17:46:52 +0100 |
| commit | 43d3b0d3b62e306ced4a5020dcaf732cae20f268 (patch) | |
| tree | 880c864f9db59bf1a49074776ee68ab5982639f6 /tpu.c | |
| parent | 11d75bf41c7d22b6a6a76fa2dd4843d23a75fffb (diff) | |
| download | tis100-master.tar.gz tis100-master.zip | |
Diffstat (limited to 'tpu.c')
| -rw-r--r-- | tpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -142,6 +142,7 @@ tpu_port_init(struct tpu_port *port, struct tpu *tpu) port->in = -1; port->writing = false; port->out = -1; + port->io = false; } void @@ -181,6 +182,7 @@ tpu_io_port_init(struct tpu_io_port *io_port, char c, enum tpu_port_dir dir, enum tpu_port_type type, int x, int y) { tpu_port_init(&io_port->port, NULL); + io_port->port.io = io_port; io_port->io_step = 0; io_port->type = type; io_port->file = NULL; |
