1 /*
2  * Copyright (c) 2015 Brian Swetland
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 
9 #include <lk/reg.h>
10 #include <lk/debug.h>
11 
12 #include <platform/lpc43xx-gpio.h>
13 
target_early_init(void)14 void target_early_init(void) {
15     // UART1 on P6.4 (TX) and P2.1 (RX)
16     // LpcXpresso4337 P4 FTDI header
17     pin_config(PIN(6,4), PIN_MODE(2) | PIN_PLAIN);
18     pin_config(PIN(2,1), PIN_MODE(1) | PIN_PLAIN | PIN_INPUT);
19 }
20 
target_init(void)21 void target_init(void) {
22 }
23 
24