gfx_findRegion(): Only define when CONFIG_GFX_CLIPPING is enabled.
[bertos.git] / app / triface / triface.c
index c0638081b5091693c6cc636ced188a7a88e38be4..732e0c3d9bb01a685bb19b89807a5ef9b3197c23 100755 (executable)
 
 /*#*
  *#* $Log$
+ *#* Revision 1.4  2006/06/14 00:28:52  marco
+ *#* Removed initial delay.
+ *#*
+ *#* Revision 1.3  2006/06/12 21:37:02  marco
+ *#* implemented some commands (ver and sleep)
+ *#*
+ *#* Revision 1.2  2006/06/01 12:29:21  marco
+ *#* Add first simple protocol command (version request).
+ *#*
  *#* Revision 1.1  2006/05/18 00:41:47  bernie
  *#* New triface devlib application.
  *#*
@@ -24,6 +33,9 @@
 #include <drv/buzzer.h>
 #include <drv/ser.h>
 #include <cfg/macros.h>
+#include <mware/parser.h>
+
+#include "protocol.h"
 
 int main(void)
 {
@@ -36,11 +48,12 @@ int main(void)
        Serial *host_port = ser_open(0);
        ser_setbaudrate(host_port, 38400);
 
+       protocol_init(host_port);
 
        // Main loop
        for(;;)
        {
-               ser_print(host_port, "Hello, world!\r\n");
+               protocol_run(host_port);
        }
 
        return 0;