run() callback was unused but was still using cycles
Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
if (avr->sreg[S_I] && !avr->i_shadow)
avr->pending_wait++;
avr->i_shadow = avr->sreg[S_I];
-
- // run IO modules that wants it
- avr_io_t * port = avr->io_port;
- while (port) {
- if (port->run)
- port->run(port);
- port = port->next;
- }
-
+
// run the cycle timers, get the suggested sleeo time
// until the next timer is due
avr_cycle_count_t sleep = avr_cycle_timer_process(avr);
uint32_t irq_ioctl_get; // used to get irqs from this module
int irq_count; // number of (optional) irqs
struct avr_irq_t * irq; // optional external IRQs
- // called at every instruction
- void (*run)(struct avr_io_t *io);
// called at reset time
void (*reset)(struct avr_io_t *io);
// called externally. allow access to io modules and so on