diff options
author | Travis Geiselbrecht <travisg@google.com> | 2012-06-25 00:15:29 -0700 |
---|---|---|
committer | Travis Geiselbrecht <travisg@google.com> | 2012-06-25 23:30:44 -0700 |
commit | 6a4f43630e1d0d2bf9300f12810f5bb4bd67bf93 (patch) | |
tree | 9281df95bf6f620046d0823ab88764bc1e7723fe | |
parent | 533717212ab21698d3f2e8556f306289d8c90934 (diff) | |
download | adk2012-6a4f43630e1d0d2bf9300f12810f5bb4bd67bf93.tar.gz |
configure the debug uart's pins on init
-rw-r--r-- | MakefileBasedBuild/app/fwk.c | 4 |
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 |