프로젝트 자료실

GPIO FUNC

작성자 임베디드코리아 작성일16-08-05 16:17 조회3,343회 댓글0건
#include "inc/lm3s9b92.h"
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"

int main()
{
  SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOJ);
  SysCtlDelay(1);
  GPIOPinTypeGPIOOutput(GPIO_PORTJ_BASE, GPIO_PIN_0);
  GPIOPinWrite(GPIO_PORTJ_BASE,GPIO_PIN_0,0x00);
 
  while(1);
 // return 0;
}