//------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------ // // system init // //------------------------------------------------------------------------------------------------------------ int system_init(void) { int i;
// GPIO Init(LED Port ALL Output) for(i =0; i < MAX_LED_CNT; i++) pinMode (ledPorts[i], OUTPUT);
return0; }
//------------------------------------------------------------------------------------------------------------ // // board data update // //------------------------------------------------------------------------------------------------------------ void boardDataUpdate(void) { int i;
// LED Control for(i =0; i < MAX_LED_CNT; i++) digitalWrite (ledPorts[i],0);// LED All Clear for(i =0; i < ledPos; i++) digitalWrite (ledPorts[i],1);// LED On }
//------------------------------------------------------------------------------------------------------------ // // Start Program // //------------------------------------------------------------------------------------------------------------ int main (int argc,char*argv[]) { staticint timer =0;
wiringPiSetup ();
if(system_init()<0) { fprintf(stderr,"%s: System Init failed\n", __func__);return-1; }