Example #1
0
void avr_callback_sleep_raw(avr_t * avr, avr_cycle_count_t howLong)
{
	uint32_t usec = avr_pending_sleep_usec(avr, howLong);
	if (usec > 0) {
		usleep(usec);
	}
}
Example #2
0
void
avr_callback_sleep_gdb (avr_t * avr, avr_cycle_count_t how_long)
{
  uint32_t usec = avr_pending_sleep_usec (avr, how_long);
  while (avr_gdb_processor (avr, usec))
    {}
}
Example #3
0
void
avr_callback_sleep_raw (avr_t * avr, avr_cycle_count_t how_long)
{
  uint32_t usec = avr_pending_sleep_usec (avr, how_long);
  if (usec > 0)
    // Sleep the simulation process some number of microseconds.
    // Note: Probably not accurate on many machines down to the microsecond.
    usleep (usec);
}