nucleo側のプログラム

Dependents:   serial_connected_mcu_nucleo serial_connected_mcu_nucleo

Fork of serial_connected_mcu by tarou yamada

Files at this revision

API Documentation at this revision

Comitter:
kachikyun
Date:
Sun Jul 10 07:40:44 2016 +0000
Parent:
6:a0cc9c27cedf
Child:
8:b916e6f45f75
Commit message:

Changed in this revision

serial_connected_mcu_slave.cpp Show annotated file Show diff for this revision Revisions of this file
serial_connected_mcu_slave.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/serial_connected_mcu_slave.cpp	Sun Jul 10 07:38:13 2016 +0000
+++ b/serial_connected_mcu_slave.cpp	Sun Jul 10 07:40:44 2016 +0000
@@ -1,6 +1,10 @@
 #include "serial_connected_mcu_slave.hpp"
  
 namespace serial_connected_mcu{
+    const PinName serial_connected_mcu_master::PIN_SERIAL_TX = SERIAL_TX;
+    
+    const PinName serial_connected_mcu_master::PIN_SERIAL_RX = SERIAL_RX;
+    
     serial_connected_mcu_slave::serial_connected_mcu_slave(){
         port = new Serial(PIN_SERIAL_TX, PIN_SERIAL_RX);
         port->baud(BAUDRATE);
--- a/serial_connected_mcu_slave.hpp	Sun Jul 10 07:38:13 2016 +0000
+++ b/serial_connected_mcu_slave.hpp	Sun Jul 10 07:40:44 2016 +0000
@@ -32,8 +32,8 @@
         void set(int index_of_data, int16_t setting_data);
         int16_t get(int index_of_data);
     private:
-        static const PinName PIN_SERIAL_TX = SERIAL_TX;
-        static const PinName PIN_SERIAL_RX = SERIAL_RX;
+        static const PinName PIN_SERIAL_TX;
+        static const PinName PIN_SERIAL_RX;
         static const int BAUDRATE = 9600;
         int16_t* array_of_read_data;
         int16_t* array_of_write_data;