X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=arducontrol%2Finterface.c;h=041dd67bafc05f07fb9ef096b9f9b8a0668f9c8b;hb=5ee5a22903f8059bf38bc8b2041eb18dfc58bcf0;hp=9d21e9cbfe1ddf874d0e41b9807aa29a2164686e;hpb=c4b21121fb82cc5b4f9acdc49846c3671a4584c2;p=model-railway-devices.git diff --git a/arducontrol/interface.c b/arducontrol/interface.c index 9d21e9c..041dd67 100644 --- a/arducontrol/interface.c +++ b/arducontrol/interface.c @@ -12,17 +12,17 @@ volatile uint8_t recv_overrun = 0; uint8_t cmd_buf[15]; uint8_t cmd_length; -void process_commands(); -uint8_t process_command(); +void process_commands(void); +uint8_t process_command(void); -void interface_init() +void interface_init(void) { DDRD = (DDRD&0xFC)|0x02; serial_init(9600); } -void interface_check() +void interface_check(void) { if(recv_overrun) { @@ -34,7 +34,7 @@ void interface_check() process_commands(); } -void process_commands() +void process_commands(void) { while(recv_fill>0) { @@ -80,7 +80,7 @@ void process_commands() } } -uint8_t process_command() +uint8_t process_command(void) { uint8_t type = cmd_buf[0]>>4; if(type==0)