blob: f95a67029203b527bb33a248939438faddbb1498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* flashimg/cpu_hdmi/main.c - Entry point for the HDMI-decoder co-processor
*
* Copyright (C) 2025 Luke T. Shumaker <lukeshu@lukeshu.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include <hardware/uart.h>
void __lm_putchar(unsigned char c) {
if (c == '\n') {
while (!uart_is_writable(uart0))
tight_loop_contents();
uart_get_hw(uart0)->dr = '\r';
}
while (!uart_is_writable(uart0))
tight_loop_contents();
uart_get_hw(uart0)->dr = c;
}
int main() {
return 0;
}
|