67 uint32_t frequency
frequency we are running at
Definition: sim_avr.h:159
static uint64_t avr_cycles_to_nsec(struct avr_t *avr, avr_cycle_count_t cycles)
Converts back a number of cycles to nsecs.
Definition: sim_time.h:51
static avr_cycle_count_t avr_hz_to_cycles(avr_t *avr, uint32_t hz)
Converts a number of hz (to megahertz etc) to a number of cycle.
Definition: sim_time.h:57
static avr_cycle_count_t avr_usec_to_cycles(struct avr_t *avr, uint32_t usec)
Converts a number of usec to a number of machine cycles, at current speed.
Definition: sim_time.h:39
avr_t * avr
Definition: run_avr.c:54
static uint32_t avr_cycles_to_usec(struct avr_t *avr, avr_cycle_count_t cycles)
Converts back a number of cycles to usecs (for usleep)
Definition: sim_time.h:45
uint64_t avr_cycle_count_t
Definition: sim_avr_types.h:36
Main AVR instance.
Definition: sim_avr.h:142