comparison target-utils/flash-boot-test/main.c @ 200:cc6594a7fc7a

target-utils/flash-boot-test: added UART init, needed for mode 1
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 01 May 2017 20:02:49 +0000
parents 06c629b34903
children
comparison
equal deleted inserted replaced
199:5515360e2f61 200:cc6594a7fc7a
2 2
3 extern const u32 _Magic_words[2]; 3 extern const u32 _Magic_words[2];
4 4
5 main() 5 main()
6 { 6 {
7 printf("\nFlash boot test program running (mode %u)\n", 7 /* 13 MHz to the peripherals */
8 _Magic_words[0]); 8 *(volatile u16 *)0xFFFFFD02 |= 0x40;
9 uart_init();
10 printf("Flash boot test program running (mode %u)\n", _Magic_words[0]);
9 for (;;) { 11 for (;;) {
10 putchar('='); 12 putchar('=');
11 if (command_entry()) 13 if (command_entry())
12 command_dispatch(); 14 command_dispatch();
13 } 15 }