Fix uart_mini initialization and emulation

This commit is contained in:
2019-12-02 12:59:40 +01:00
parent 417106b967
commit 6c4dba0929
11 changed files with 46 additions and 33 deletions
+1 -1
View File
@@ -67,5 +67,5 @@ k_irq_fallback(int type, unsigned long esr, unsigned long address)
k_logu(esr, 16);
k_logs(", address: ");
k_logu(address, 16);
k_logs("\n");
k_logs("\r\n");
}
+1 -1
View File
@@ -31,7 +31,7 @@ k_main(void)
k_logs("Starting Lowe OS (EL");
k_logi(aarch64_get_el(), 10);
k_logs(")\n");
k_logs(")\r\n");
if (k_arch_init())
goto panic;
+3 -1
View File
@@ -35,5 +35,7 @@ k_timer_irq_handler(void)
m_current += m_interval;
aarch64_set32r(TIMER_C1, m_current);
aarch64_set32r(TIMER_CS, TIMER_CS_M1);
k_logs("Timer interrupt\n");
k_logs("Timer: ");
k_logu(m_current, 10);
k_logs("\r\n");
}