Skip to content

Commit 698fd65

Browse files
committed
Changing ts resolution to us
1 parent 7771bd7 commit 698fd65

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

hw/arm/stm32_flashboard.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@ static void printLedStatus(Stm32Flashboard *s)
155155

156156
if (!s->ledDrive1 && !s->ledDrive2)
157157
{
158-
printf("(%"PRId64".%05"PRId64") LED %s\n", secs, frac, "Shutdown");
158+
printf("(%"PRId64".%06"PRId64") LED %s\n", secs, frac, "Shutdown");
159159
}
160160
else if (s->ledDrive1 && !s->ledDrive2)
161161
{
162-
printf("(%"PRId64".%05"PRId64") LED %s\n", secs, frac, "Low current");
162+
printf("(%"PRId64".%06"PRId64") LED %s\n", secs, frac, "Low current");
163163
}
164164
else if (!s->ledDrive1 && s->ledDrive2)
165165
{
166-
printf("(%"PRId64".%05"PRId64") LED %s\n", secs, frac, "High current");
166+
printf("(%"PRId64".%06"PRId64") LED %s\n", secs, frac, "High current");
167167
}
168168
else if (s->ledDrive1 && s->ledDrive2)
169169
{
170-
printf("(%"PRId64".%05"PRId64") LED %s\n", secs, frac, "Low+High current");
170+
printf("(%"PRId64".%06"PRId64") LED %s\n", secs, frac, "Low+High current");
171171
}
172172
}
173173

@@ -241,10 +241,10 @@ static void gpiob_irq_handler(void *opaque, int n, int level)
241241
*/
242242
switch (level) {
243243
case 0:
244-
printf("(%"PRId64".%05"PRId64") %s Off\n", secs, frac, name);
244+
printf("(%"PRId64".%06"PRId64") %s Off\n", secs, frac, name);
245245
break;
246246
case 1:
247-
printf("(%"PRId64".%05"PRId64") %s On\n", secs, frac, name);
247+
printf("(%"PRId64".%06"PRId64") %s On\n", secs, frac, name);
248248
break;
249249
}
250250
}
@@ -273,7 +273,7 @@ static void stm32_flashboard_key_event(void *opaque, int keycode)
273273
int64_t now = qemu_get_clock_ns(vm_clock);
274274
int64_t secs = now / 1000000000;
275275
int64_t frac = (now % 1000000000) / 10000;
276-
printf("(%"PRId64".%05"PRId64") Trigger GPIO 0\n", secs, frac);
276+
printf("(%"PRId64".%06"PRId64") Trigger GPIO 0\n", secs, frac);
277277
qemu_irq_raise(s->gpioIRQ);
278278
s->triggered = true;
279279
}
@@ -291,7 +291,7 @@ static void stm32_flashboard_key_event(void *opaque, int keycode)
291291
int64_t now = qemu_get_clock_ns(vm_clock);
292292
int64_t secs = now / 1000000000;
293293
int64_t frac = (now % 1000000000) / 10000;
294-
printf("(%"PRId64".%05"PRId64") Trigger OD_IN\n", secs, frac);
294+
printf("(%"PRId64".%06"PRId64") Trigger OD_IN\n", secs, frac);
295295
qemu_irq_raise(s->odIRQ);
296296
s->triggered = true;
297297
}

0 commit comments

Comments
 (0)