I am new to embedded programming. I am working on a craneboard (ARM Cortex A8). Source code is available on github .
I created C code to connect an external LED connected via GPIO to blink. It can be executed in the u-boot console as a command. Currently,
I can not stop the blinking of the LED using Ctrl-C.
Where is Ctrl-C interrupt coding located?
ret=set_mmc_mux(); if(ret<0) printf("\n\nLED failed to glow!\n\n"); else{ if(!omap_request_gpio(lpin)) { omap_set_gpio_direction(lpin,0); for(i=1;i<21;i++) { ctr=0; if((i%2)==0) { num=num-1; omap_set_gpio_dataout(lpin,num); } else { num=num+1; omap_set_gpio_dataout(lpin,num); } udelay(3000000); } } }
I ask you to notify me.
source share