Debian Codegraph @

debian/samples/src/retarget/retarget.c

raw
1 void retarget_init()
2 {
3 // Initialize UART
4 }
5
6 int _write (int fd, char *ptr, int len)
7 {
8 /* Write "len" of char from "ptr" to file id "fd"
9 * Return number of char written.
10 * Need implementing with UART here. */
11 return len;
12 }
13
14 int _read (int fd, char *ptr, int len)
15 {
16 /* Read "len" of char to "ptr" from file id "fd"
17 * Return number of char read.
18 * Need implementing with UART here. */
19 return len;
20 }
21
22 void _ttywrch(int ch) {
23 /* Write one char "ch" to the default console
24 * Need implementing with UART here. */
25 }
26
27 /* SystemInit will be called before main */
28 void SystemInit()
29 {
30 retarget_init();
31 }
32