diff options
-rw-r--r-- | nuttx/configs/cc3200-launchpad/src/cc3200_serial.c | 2 | ||||
-rw-r--r-- | nuttx/configs/cc3200-launchpad/src/cc3200_utils.c | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/nuttx/configs/cc3200-launchpad/src/cc3200_serial.c b/nuttx/configs/cc3200-launchpad/src/cc3200_serial.c index 4d7715ab2..6a1359ba1 100644 --- a/nuttx/configs/cc3200-launchpad/src/cc3200_serial.c +++ b/nuttx/configs/cc3200-launchpad/src/cc3200_serial.c @@ -71,7 +71,7 @@ static void cc3200_uart0_init(void) { - HWREG(0x44025048) |= 0x01; + HWREG(0x44025080) |= 0x01; cc3200_pin_type_uart(PIN_55, PIN_MODE_3); cc3200_pin_type_uart(PIN_57, PIN_MODE_3); diff --git a/nuttx/configs/cc3200-launchpad/src/cc3200_utils.c b/nuttx/configs/cc3200-launchpad/src/cc3200_utils.c index 88f7c692a..8534483e9 100644 --- a/nuttx/configs/cc3200-launchpad/src/cc3200_utils.c +++ b/nuttx/configs/cc3200-launchpad/src/cc3200_utils.c @@ -140,19 +140,26 @@ void cc3200_pin_type_uart(uint32_t pin, uint32_t pin_mode) void cc3200_init(void) { + uint8_t x=16; + HWREG(0x4402F064) |= 0x800000; HWREG(0x4402F800 + 0x00000418) |= (1<<4); HWREG(0x4402E16C) |= 0x3C; + HWREG(0x44025000 + 0x00000048) |= 0x00000001; + while(--x) + ; + HWREG(0x44025000 + 0x00000048) &= ~0x00000001; HWREG(0x4402F804) = 0x0; - HWREG(0x4402F804) = 0x0; + HWREG(0x4402F804) = 0x1; if (((HWREG(0x4402F0C8) & 0xFF) == 0x2)) { HWREG(0x4402E110) = ((HWREG(0x4402E110) & ~0xC0F) | 0x2); HWREG(0x4402E114) = ((HWREG(0x4402E110) & ~0xC0F) | 0x2); - HWREG(0x4402E184) |= 0x2; } + HWREG(0x4402E184) |= 0x2; + if ((HWREG(0x4402E0A4) & 0xF) == 0x1) { HWREG(0x4402E0A4) = ((HWREG(0x4402E0A4) & ~0xF)); |