2015_robocon_bteam / Mbed 2 deprecated 2015robot_main

Dependencies:   PID QEI mbed

Fork of 2015robot_main by Naoto Deguchi

Revision:
59:9d66edf3e734
Parent:
57:3fbd487e055e
Child:
67:658a54be9212
Child:
68:2b2b88ecdcce
--- a/communicate.h	Tue Sep 29 08:23:03 2015 +0000
+++ b/communicate.h	Thu Oct 01 09:52:36 2015 +0000
@@ -4,6 +4,9 @@
 Serial RS485(RS485_TX, RS485_RX);
 #define EnablePin p7
 DigitalOut Enable(EnablePin);
+inline void initializeRS485(){
+    RS485.format(8,Serial::Even);
+}
 inline void sendData(int address, int data5) {
     unsigned int data;
     if (data5 <= 31) {