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)
{
process_commands();
}
-void process_commands()
+void process_commands(void)
{
while(recv_fill>0)
{
}
}
-uint8_t process_command()
+uint8_t process_command(void)
{
uint8_t type = cmd_buf[0]>>4;
if(type==0)