]> git.tdb.fi Git - model-railway-devices.git/blobdiff - arducontrol/interface.c
Mark parameterless functions as such with a void argument list
[model-railway-devices.git] / arducontrol / interface.c
index 9d21e9cbfe1ddf874d0e41b9807aa29a2164686e..041dd67bafc05f07fb9ef096b9f9b8a0668f9c8b 100644 (file)
@@ -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)