mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-12-02 10:04:14 +01:00
18 lines
368 B
C
18 lines
368 B
C
#include "sys.h"
|
|
|
|
|
|
void init (void) {
|
|
DMA->SCR = DMA_SCR_STOP;
|
|
USB->SCR = USB_SCR_FLUSH_TX | USB_SCR_FLUSH_TX;
|
|
|
|
GPIO->ODR = 0;
|
|
GPIO->OER = (1 << 0);
|
|
|
|
CFG->SCR = CFG_SCR_SDRAM_SWITCH;
|
|
CFG->DD_OFFSET = DEFAULT_DD_OFFSET;
|
|
CFG->SAVE_OFFSET = DEFAULT_SAVE_OFFSET;
|
|
|
|
while (!(UART->SCR & UART_SCR_TXE));
|
|
UART->DR = '$';
|
|
}
|