mirror of
https://github.com/justinian/edmfd_firmware.git
synced 2025-12-09 16:24:31 -08:00
Improve stdio delay issues with USB CDC
This commit is contained in:
@@ -68,11 +68,11 @@ void set_leds_callback(uint32_t leds) {
|
||||
button_leds[i] = desired;
|
||||
}
|
||||
}
|
||||
log::trace("set leds to %02x %02x", button_leds[0], button_leds[1]);
|
||||
log::trace("set leds %02x %02x", button_leds[0], button_leds[1]);
|
||||
}
|
||||
|
||||
void test_irq_handler(unsigned pin, uint32_t events) {
|
||||
log::debug("irq received on %d", pin);
|
||||
log::debug("irq on %d", pin);
|
||||
irq_handler(pin, events);
|
||||
uint32_t leds = 0;
|
||||
for (unsigned i = 0; i < button_group_count; ++i)
|
||||
@@ -160,7 +160,6 @@ int main(void)
|
||||
// Let timers and iterrupts handle most things
|
||||
while (1) {
|
||||
tud_task(); // tinyusb device task
|
||||
sleep_ms(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace {
|
||||
}
|
||||
|
||||
void log(level lv, const format &fmt, ...) {
|
||||
printf("%20s:%-3d: %5s ", fmt.loc.file_name(), fmt.loc.line(), level_strings[int(lv)]);
|
||||
printf("%10s:%-3d: %5s ", fmt.loc.file_name(), fmt.loc.line(), level_strings[int(lv)]);
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vprintf(fmt.fmt, args);
|
||||
|
||||
Reference in New Issue
Block a user