|
@@ -22,6 +22,8 @@
|
|
|
#define PIN_USB_PWR_EN 7
|
|
|
#define PIN_USB_PWR_SINK 8
|
|
|
|
|
|
+volatile bool do_log_config_status;
|
|
|
+
|
|
|
uint8_t efuse_default_mac[6];
|
|
|
char serial_number[16]; // Canonical board serial number
|
|
|
|
|
@@ -51,6 +53,7 @@ static void heap_info()
|
|
|
printf("Heap: sram %zu/%zu, spiram %zu/%zu\n", il, ia, sl, sa);
|
|
|
}
|
|
|
|
|
|
+#if 0
|
|
|
static void dump_config()
|
|
|
{
|
|
|
printf("--- Configuration:\n");
|
|
@@ -59,6 +62,7 @@ static void dump_config()
|
|
|
write_sysvars(stdout, true);
|
|
|
printf("--- End configuration and status\n");
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
static void init_hw()
|
|
|
{
|
|
@@ -117,7 +121,8 @@ void setup() {
|
|
|
fpga_service_enable(true);
|
|
|
SetupWiFi();
|
|
|
Serial.println("[RDY]");
|
|
|
- dump_config();
|
|
|
+ sysvar_print_updates = true;
|
|
|
+ do_log_config_status = true; // Print configuration from main loop
|
|
|
led_set(LED_BLUE, LED_ON); // Software ready
|
|
|
|
|
|
heap_info();
|
|
@@ -158,8 +163,6 @@ static void dump_tasks(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-volatile bool do_log_config_status;
|
|
|
-
|
|
|
void loop() {
|
|
|
if (0) {
|
|
|
printf("loop task: %s\n", pcTaskGetName(xTaskGetCurrentTaskHandle()));
|
|
@@ -174,6 +177,8 @@ void loop() {
|
|
|
log_config_status();
|
|
|
}
|
|
|
|
|
|
+ fflush(stdout);
|
|
|
+
|
|
|
TTY::ping();
|
|
|
vTaskDelay(5 * configTICK_RATE_HZ);
|
|
|
}
|