#include "MK64F12.h"
#define LED0_ON GPIOB_PCOR |=(1<<21)
#define LED0_OFF GPIOB_PSOR |=(1<<21)
#define LED1_ON GPIOB_PCOR |=(1<<22)
#define LED1_OFF GPIOB_PSOR |=(1<<22)
#define LED2_ON GPIOE_PCOR |=(1<<26)
#define LED2_OFF GPIOE_PSOR |=(1<<26)
void Delay(void)
{
unsigned int i,j;
for(j=2000;j>0;j--)
for(i=10000;i>0;i--);
}
|