empty_project_28377D/main.c

47 lines
818 B
C
Raw Permalink Normal View History

//
// Included Files
//
#include "F28x_Project.h"
#include "driverlib.h"
#include "device.h"
#define LED_BLINKY_GPIO 3
//
// Main
//
#ifdef _FLASH
extern unsigned int _ramconsts_loadstart;
extern unsigned int _ramconsts_loadsize;
extern unsigned int _ramconsts_runstart;
#endif
void main(void)
{
InitSysCtrl();
#ifdef _FLASH
memcpy(&_ramconsts_runstart, &_ramconsts_loadstart, (Uint32)&_ramconsts_loadsize);
#endif
InitGpio();
GPIO_SetupPinOptions(LED_BLINKY_GPIO, GPIO_OUTPUT, GPIO_PUSHPULL);
GPIO_SetupPinMux(LED_BLINKY_GPIO, GPIO_MUX_CPU1, 0);
while(1){
GPIO_WritePin(LED_BLINKY_GPIO, 1);
DELAY_US(1000*1000);
GPIO_WritePin(LED_BLINKY_GPIO, 0);
DELAY_US(1000*1000);
}
// ADC_enablePPBTwosComplement(ADCA_BASE, 0);
}
//
// End of File
//