Files
lk/target/lpcxpresso4337/init.c
Travis Geiselbrecht cba9e47987 [license] replace the longer full MIT license with a shorter one
Used scripts/replacelic. Everything seems to build fine.
2019-07-05 17:22:23 -07:00

24 lines
528 B
C

/*
* Copyright (c) 2015 Brian Swetland
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/reg.h>
#include <lk/debug.h>
#include <platform/lpc43xx-gpio.h>
void target_early_init(void) {
// UART1 on P6.4 (TX) and P2.1 (RX)
// LpcXpresso4337 P4 FTDI header
pin_config(PIN(6,4), PIN_MODE(2) | PIN_PLAIN);
pin_config(PIN(2,1), PIN_MODE(1) | PIN_PLAIN | PIN_INPUT);
}
void target_init(void) {
}