CC3200 Lauchpad updates from Jim Ewing

This commit is contained in:
Gregory Nutt 2014-08-27 15:39:57 -06:00
parent fdf6ddb99e
commit ea203689b3
2 changed files with 10 additions and 3 deletions

View File

@ -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);

View File

@ -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));