1 /*
2  * Copyright (c) 2012 Travis Geiselbrecht
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 #include <lk/err.h>
9 #include <lk/debug.h>
10 #include <lk/trace.h>
11 #include <target.h>
12 #include <lk/compiler.h>
13 #include <dev/gpio.h>
14 #include <stm32f4xx_usart.h>
15 #include <stm32f4xx_rcc.h>
16 #include <stm32f4xx_gpio.h>
17 #include <platform/stm32.h>
18 #include <platform/gpio.h>
19 #include <target/debugconfig.h>
20 #include <target/m4display.h>
21 
target_early_init(void)22 void target_early_init(void) {
23     stm32_debug_early_init();
24 }
25 
target_init(void)26 void target_init(void) {
27     TRACE_ENTRY;
28 
29     stm32_debug_init();
30 
31     init_display();
32 
33     TRACE_EXIT;
34 }