1
0

added more code

This commit is contained in:
Andrew W
2022-08-28 16:12:16 -05:00
parent 5a2894ed1b
commit 7dabaef6f6
2345 changed files with 1343530 additions and 0 deletions

BIN
CPE435/Lab12/Lab12.pdf Normal file

Binary file not shown.

14
CPE435/Lab12/test.c Normal file
View File

@ -0,0 +1,14 @@
volatile unsigned int * const UART0DR = (unsigned int *)0x101f1000;
// UART0 is the terminal running at 0x101f1000
// UART0DR is the register used to transmit and receive bytes
void print_uart0(const char *s) {
while(*s != '\0') { /* Loop until end of string */
*UART0DR = (unsigned int)(*s); /* Transmit char */
s++; /* Next char */
}
}
void c_entry() {
print_uart0("Hello world!\n");
}