Files

17 lines
442 B
C
Raw Permalink Normal View History

void _start() {
*(volatile unsigned int *)(0x60006010) |=
(1 << 6) | (1 << 7); // UARTA & UARTB
*(volatile unsigned int *)(0x60006014) |=
(1 << 23) | (1 << 16); // UARTC & UARTD
unsigned int uarts[] = {0x70006000, 0x70006040, 0x70006200, 0x70006300};
while (1) {
for (int j = 0; j < 4; j++) {
*(volatile unsigned int *)(uarts[j] + 0x00) = 0x55;
}
for (volatile int i = 0; i < 50000; i++)
;
}
}