16 lines
267 B
C
16 lines
267 B
C
#include <LPC17xx.h>
|
|
|
|
int main(){
|
|
int i;
|
|
// from P1.24 -> 31
|
|
LPC_PINCON->PINSEL3 &= 0x0000FFFF;
|
|
|
|
LPC_GPIO1->FIODIR = 0xFF000000;
|
|
|
|
while(1){
|
|
LPC_GPIO1-> FIOSET=0xFF000000;
|
|
for(i=0; i<1000; i++);
|
|
LPC_GPIO1->FIOCLR=0xFF000000;
|
|
for(i=0; i<1000; i++);
|
|
}
|
|
}
|