nucleo側のプログラム

Dependents:   serial_connected_mcu_nucleo serial_connected_mcu_nucleo

Fork of serial_connected_mcu by tarou yamada

Revision:
4:1323ef48a984
Parent:
3:c927b60f053c
Child:
5:77d6f1ddf2e4
--- a/serial_connected_mcu_slave.hpp	Sun Jul 10 06:53:44 2016 +0000
+++ b/serial_connected_mcu_slave.hpp	Sun Jul 10 07:10:24 2016 +0000
@@ -8,14 +8,14 @@
 #include <sstream>
  
 namespace serial_connected_mcu{
-    enum{
+    enum read_id {
        ESC1,
        ESC2,
        ESC3,
        SIZE_OF_READ_DATA
     };
     
-    enum{
+    enum write_id {
         ENCODER1,
         ENCODER2,
         ENCODER3,
@@ -43,4 +43,6 @@
         void on_received();
         void string_to_int();
     };
-}
\ No newline at end of file
+}
+
+#endif