Commits

Anders Hammarquist committed 20e2991

config compatible with rf socket on sensor hub booster pack

Comments (0)

Files changed (1)

Basic_Wifi_Application/board.c

 #include "driverlib/systick.h"
 #include "driverlib/fpu.h"
 #include "driverlib/debug.h"
-#include "grlib/grlib.h"
 
 #include "utils/uartstdio.h"
 #include "driverlib/uart.h"
 	
                  /* Configure the system peripheral bus that IRQ & EN pin are map to */
 					MAP_SysCtlPeripheralEnable( SYSCTL_PERIPH_IRQ_PORT);
+                                        MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_EN_PORT);
 					//
 					// Disable all the interrupts before configuring the lines
 					//
 					//
 					// Configure WLAN chip
 					//
-                    MAP_GPIOPinTypeGPIOOutput(SPI_GPIO_IRQ_BASE, SPI_EN_PIN);
-                    MAP_GPIODirModeSet( SPI_GPIO_IRQ_BASE, SPI_EN_PIN, GPIO_DIR_MODE_OUT );
-                    MAP_GPIOPadConfigSet( SPI_GPIO_IRQ_BASE, SPI_EN_PIN, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPD );
+                    MAP_GPIOPinTypeGPIOOutput(SPI_EN_PORT, SPI_EN_PIN);
+                    MAP_GPIODirModeSet( SPI_EN_PORT, SPI_EN_PIN, GPIO_DIR_MODE_OUT );
+                    MAP_GPIOPadConfigSet( SPI_EN_PORT, SPI_EN_PIN, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPD );
 
 
 
-					MAP_GPIOPinWrite(SPI_GPIO_IRQ_BASE, SPI_EN_PIN, PIN_LOW);	
+					MAP_GPIOPinWrite(SPI_EN_PORT, SPI_EN_PIN, PIN_LOW);
 					SysCtlDelay(600000);
 					SysCtlDelay(600000);
 					SysCtlDelay(600000);
 {
 	if(val)
 	{
-  		MAP_GPIOPinWrite(SPI_GPIO_IRQ_BASE, SPI_EN_PIN,PIN_HIGH);
+            MAP_GPIOPinWrite(SPI_EN_PORT, SPI_EN_PIN,PIN_HIGH);
 	}
 	else
 	{
-  		MAP_GPIOPinWrite(SPI_GPIO_IRQ_BASE, SPI_EN_PIN, PIN_LOW);
+  		MAP_GPIOPinWrite(SPI_EN_PORT, SPI_EN_PIN, PIN_LOW);
 	}
 	
 }
   // Configure SysTick to occur X times per second, to use as a time
     // reference.  Enable SysTick to generate interrupts.
     //
-    unsigned long debug = SysCtlClockGet();
+    //unsigned long debug = SysCtlClockGet();
     SysTickPeriodSet(SysCtlClockGet()/SYSTICK_PER_MS);
     SysTickIntEnable();
     SysTickEnable();