+void cmdline_init(void)
+{
+ /* init command line */
+ rdline_init(&xbeeboard.rdl, cmdline_write_char, cmdline_valid_buffer,
+ complete_buffer);
+ snprintf_P(xbeeboard.prompt, sizeof(xbeeboard.prompt),
+ PSTR("mainboard > "));
+
+ /* load a timer for flushing logs */
+ callout_init(&flush_log_timer, flush_logs_cb, NULL, LOW_PRIO);
+ callout_schedule(&xbeeboard.intr_cm, &flush_log_timer, FLUSH_LOGS_MS);
+}