#include "f28x_project.h"
//
// Main
//
void main(void)
{
//
//Step 1. Initialize System Control:
//PLL, WatchDog,enabe Peripheral Clocks
//This example function is found in the f2838x_sysctrl.c file.
//
InitSysCtrl();
//
//Step 2. Initialize GPIO
//
InitGpio();
//
//Step 3. Clear all __interrupts and initialize PIE vector table:
//Disable CPU __interrupts
//
DINT;
//
//Initialize the PIE control registers to their default state.
//The default state is all PIE interrupts disabled and flags
//are cleared.
//
InitPieCtrl();
//
//Disable CPU interrupts and clear all CPU interrupt flags:
//
IER = 0x0000;
IFR = 0x0000;
//
//Initialize the PIE vector table with pointers to the shell Interrupt
//Service Routines (ISR).
//
InitPieVectTable();
//
//Step 4. User specific code:
while(1);
}
28388HelloWord
最新推荐文章于 2023-11-02 18:17:43 发布