/*
* main.c
*/
// Standard includes
#include <stdio.h>
// Driverlib includes
#include "hw_types.h"
#include "hw_ints.h"
#include "hw_memmap.h"
#include "hw_common_reg.h"
#include "hw_apps_rcm.h"
#include "prcm.h"
#include "gpio.h"
#include "utils.h"
#include "pin.h"
#include "hw_gpio.h"
extern void (* const g_pfnVectors[])(void);
void port_init()
{
// Enable Peripheral Clocks Must do before setting direction
PRCMPeripheralClkEnable(PRCM_GPIOA1, PRCM_RUN_MODE_CLK);
// Configure GIPO9
PinTypeGPIO(PIN_64,PIN_MODE_0,false);
GPIODirModeSet(GPIOA1_BASE,0x2,GPIO_DIR_MODE_OUT);
// Configure GIPO10
//
PinTypeGPIO(PIN_01, PIN_MODE_0, false);
GPIODirModeSet(GPIOA1_BASE, 0x4, GPIO_DIR_MODE_OUT);
//
// Configure GIPO11
//
PinTypeGPIO(PIN_02, PIN_MODE_0, false);
GPIODirModeSet(GPIOA1_BASE, 0x8, GPIO_DIR_MODE_OUT);
}
int main(void)
{
port_init();
while(1)
{
GPIOPinWrite(GPIOA1_BASE,0x2,1);
GPIOPinWrite(GPIOA1_BASE, 0x4,1);
GPIOPinWrite(GPIOA1_BASE, 0x8,1);
}
}
i wrote above code to glow all LED, but all LED goes OFF anyone please check and tell what i go wrong or what i did'nt understand , please