You are on page 1of 1

CODE:

/*GPIO*/

#include 91X_lib.h
GPIO_Init typedef GPIO_init structure;
static void delay(u32 ncount);
int main()
{
#if def DEBUG
debug();
#endif
/* enabling code for clock enable for the following GPIO pins */
while(1)
{
/*Turn off Led*/
GPIO_write(GPIO3,0x00);
/*Insert delay*/
Delay(0x7ffff);
/* Turn on Led*/
GPIO_write (GPIO4,0xff);
/* Insert delay*/
Delay(0x7ffff);
}
}
static void delay(u32 ncount)
{
u32 j=0;
for(j=ncount; j!=0; j--)
}

310613431004

You might also like