a

Dependencies:   mbed mbed-rtos

Revision:
1:ceee5a608e7c
diff -r c3e774091195 -r ceee5a608e7c src/Examples/echoer.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Examples/echoer.cpp	Thu Mar 28 07:44:42 2019 +0000
@@ -0,0 +1,36 @@
+/**
+  ******************************************************************************
+  * @file    Echoer.cpp
+  * @author  RBRO/PJ-IU
+  * @version V1.0.0
+  * @date    day-month-year
+  * @brief   This file contains the class implementation for the serial echoer
+  *          functionality.
+  ******************************************************************************
+ */
+
+#include <Examples/echoer.hpp>
+
+namespace examples{
+    /** \brief  Class constructor
+     *
+     *  Constructor method
+     *
+     *  \param f_period       echoer execution period
+     *  \param f_serialPort   Serial communication object
+     */
+    CEchoer::CEchoer(uint32_t f_period, Serial& f_serialPort) 
+        : task::CTask(f_period)
+        , m_serialPort(f_serialPort)
+    {
+    }
+
+    /** \brief  Method called each f_period
+     * 
+     */
+    void CEchoer::_run()
+    {
+        m_serialPort.printf(".\n\r");
+    }
+
+}; // namespace examples