summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Geiselbrecht <travisg@google.com>2012-06-25 00:15:29 -0700
committerTravis Geiselbrecht <travisg@google.com>2012-06-25 23:30:44 -0700
commit6a4f43630e1d0d2bf9300f12810f5bb4bd67bf93 (patch)
tree9281df95bf6f620046d0823ab88764bc1e7723fe
parent533717212ab21698d3f2e8556f306289d8c90934 (diff)
downloadadk2012-6a4f43630e1d0d2bf9300f12810f5bb4bd67bf93.tar.gz
configure the debug uart's pins on init
-rw-r--r--MakefileBasedBuild/app/fwk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MakefileBasedBuild/app/fwk.c b/MakefileBasedBuild/app/fwk.c
index 299d392..548eb03 100644
--- a/MakefileBasedBuild/app/fwk.c
+++ b/MakefileBasedBuild/app/fwk.c
@@ -191,6 +191,10 @@ void fwkInit(void){
PMC_EnablePeripheral(ID_PIOB);
PMC_EnablePeripheral(ID_PIOA);
+ //configure the debug UART
+ gpioSetFun(PORTA(8), GPIO_FUNC_A);
+ gpioSetFun(PORTA(9), GPIO_FUNC_A);
+
//dma setup
PMC_EnablePeripheral(ID_DMAC);
DMAC->DMAC_EBCIDR = 0x003F3F3F; //disable all interrupts