a

Dependencies:   mbed mbed-rtos

Committer:
alexpirciu
Date:
Thu Mar 28 07:44:42 2019 +0000
Revision:
1:ceee5a608e7c
assa

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alexpirciu 1:ceee5a608e7c 1 /**
alexpirciu 1:ceee5a608e7c 2 ******************************************************************************
alexpirciu 1:ceee5a608e7c 3 * @file Echoer.cpp
alexpirciu 1:ceee5a608e7c 4 * @author RBRO/PJ-IU
alexpirciu 1:ceee5a608e7c 5 * @version V1.0.0
alexpirciu 1:ceee5a608e7c 6 * @date day-month-year
alexpirciu 1:ceee5a608e7c 7 * @brief This file contains the class implementation for the serial echoer
alexpirciu 1:ceee5a608e7c 8 * functionality.
alexpirciu 1:ceee5a608e7c 9 ******************************************************************************
alexpirciu 1:ceee5a608e7c 10 */
alexpirciu 1:ceee5a608e7c 11
alexpirciu 1:ceee5a608e7c 12 #include <Examples/echoer.hpp>
alexpirciu 1:ceee5a608e7c 13
alexpirciu 1:ceee5a608e7c 14 namespace examples{
alexpirciu 1:ceee5a608e7c 15 /** \brief Class constructor
alexpirciu 1:ceee5a608e7c 16 *
alexpirciu 1:ceee5a608e7c 17 * Constructor method
alexpirciu 1:ceee5a608e7c 18 *
alexpirciu 1:ceee5a608e7c 19 * \param f_period echoer execution period
alexpirciu 1:ceee5a608e7c 20 * \param f_serialPort Serial communication object
alexpirciu 1:ceee5a608e7c 21 */
alexpirciu 1:ceee5a608e7c 22 CEchoer::CEchoer(uint32_t f_period, Serial& f_serialPort)
alexpirciu 1:ceee5a608e7c 23 : task::CTask(f_period)
alexpirciu 1:ceee5a608e7c 24 , m_serialPort(f_serialPort)
alexpirciu 1:ceee5a608e7c 25 {
alexpirciu 1:ceee5a608e7c 26 }
alexpirciu 1:ceee5a608e7c 27
alexpirciu 1:ceee5a608e7c 28 /** \brief Method called each f_period
alexpirciu 1:ceee5a608e7c 29 *
alexpirciu 1:ceee5a608e7c 30 */
alexpirciu 1:ceee5a608e7c 31 void CEchoer::_run()
alexpirciu 1:ceee5a608e7c 32 {
alexpirciu 1:ceee5a608e7c 33 m_serialPort.printf(".\n\r");
alexpirciu 1:ceee5a608e7c 34 }
alexpirciu 1:ceee5a608e7c 35
alexpirciu 1:ceee5a608e7c 36 }; // namespace examples