{
int i;
- AUX_ENB |= 1; /* Enable mini-uart */
- MU_LCR = 3; /* 8 bit. */
- MU_BAUD = 270; /* 115200 baud.(0x10e) */
-
GPFSEL1 &= ~((7<<12) | (7 << 15)); /* GPIO14 & 15 : alt5 */
GPFSEL1 |= (2 << 12) | (2 << 15);
GPPUD = 0;
for (i = 0; i < 150; i++)
__asm__ __volatile__("nop");
- GPPUDCLK0 = (2 << 14) | (2 << 15);
+ GPPUDCLK0 = (2 << 14);
for (i = 0; i < 150; i++)
__asm__ __volatile__("nop");
GPPUDCLK0 = 0;
- MU_CNTL = 3; /* Enable Tx & Rx */
+ AUX_ENB |= 1; /* Enable mini-uart */
+ MU_LCR = 3; /* 8 bit. */
+ MU_BAUD = 270; /* 115200 baud.(0x10e) */
+
+ MU_CNTL = 2; /* Enable Tx */
}
static inline void _debug_uart_putc(int ch)