File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ static void debug(pb_hal_uart_t *uart, const char *s) {
9292
9393void mp_hal_stdout_tx_strn (const char * str , mp_uint_t len ) {
9494 debug (& UART0 , str );
95- MICROPY_EVENT_POLL_HOOK
95+ // MICROPY_EVENT_POLL_HOOK
9696}
9797
9898void mp_hal_stdout_tx_flush (void ) {
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: MIT
22// Copyright (c) 2024 The Pybricks Authors
33
4-
5- #include <stdint.h>
6-
7- typedef struct {
8- volatile uint8_t * thr ;
9- volatile uint8_t * lsr ;
10- } debug_uart_t ;
11-
12- // Sensor port 1
13- static debug_uart_t UART0 = { .thr = (volatile uint8_t * )0x01D0C000 , .lsr = (volatile uint8_t * )0x01D0C014 };
14-
15- static void debug (debug_uart_t * uart , const char * s ) {
16- while (* s ) {
17- while ((* uart -> lsr & (1 << 5 )) == 0 ) {
18- }
19- * uart -> thr = * s ++ ;
20- }
21- }
4+ #include <stdio.h>
225
236// Called from assembly code in startup.s. After this, the "main" function in
247// lib/pbio/sys/main.c is called. That contains all calls to the driver
258// initialization (low level in pbdrv, high level in pbio), and system level
269// functions for running user code (currently a hardcoded MicroPython script).
2710void SystemInit (void ) {
28- debug (& UART0 , "System init in platform.c called from startup.s\n\n" );
11+ printf ("System init in platform.c called from startup.s\n\n" );
12+
2913 // TODO: TIAM1808 system init
3014}
You can’t perform that action at this time.
0 commit comments