fomu: semi-working commit

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross
2019-10-31 08:34:35 +08:00
parent 843136d0e4
commit 83bca4a74f
2 changed files with 112 additions and 122 deletions
+4 -3
View File
@@ -39,8 +39,9 @@ void hal_dcd_isr(uint8_t rhport);
void mputs(const char *str) {
(void)str;
while (*str) {
if (! (messible_status_read() & CSR_MESSIBLE_STATUS_FULL_OFFSET))
messible_in_write(*str);
while ( (messible_status_read() & CSR_MESSIBLE_STATUS_FULL_OFFSET))
;
messible_in_write(*str);
str++;
}
}
@@ -54,7 +55,7 @@ void fomu_error(uint32_t line)
{
(void)line;
TU_BREAKPOINT();
while (1) {}
// while (1) {}
}
volatile uint32_t system_ticks = 0;