X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fkdebug_lm3s.c;h=7bcfc9ba084bf297110ca4f9f93d60d851501ed3;hb=ffc9d84f819c7480515ece4417329f4972510462;hp=e9061d3618b10df51545c4fc2c9459aa7ca88eeb;hpb=770e91a532da193469702a7f3e1f09302f860234;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/kdebug_lm3s.c b/bertos/cpu/cortex-m3/drv/kdebug_lm3s.c index e9061d36..7bcfc9ba 100644 --- a/bertos/cpu/cortex-m3/drv/kdebug_lm3s.c +++ b/bertos/cpu/cortex-m3/drv/kdebug_lm3s.c @@ -37,6 +37,7 @@ #include /* for BV() */ #include "kdebug_lm3s.h" +#include "clock_lm3s.h" /* __delay() */ #include "cfg/cfg_debug.h" #include "io/lm3s.h" @@ -123,6 +124,7 @@ INLINE void kdbg_hw_init(void) /* Enable the peripheral clock */ SYSCTL_RCGC1_R |= SYSCTL_RCGC1_UART0; SYSCTL_RCGC2_R |= SYSCTL_RCGC2_GPIOA; + __delay(512); /* Set GPIO A0 and A1 as UART pins */ HWREG(GPIO_PORTA_BASE + GPIO_O_DIR) |= BV(0) | BV(1);