a

Dependencies:   mbed mbed-rtos

src/Examples/echoer.cpp

Committer:
alexpirciu
Date:
2019-03-28
Revision:
1:ceee5a608e7c

File content as of revision 1:ceee5a608e7c:

/**
  ******************************************************************************
  * @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