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 Blinker.hpp
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 definition for the blinker
alexpirciu 1:ceee5a608e7c 8 * functionality.
alexpirciu 1:ceee5a608e7c 9 ******************************************************************************
alexpirciu 1:ceee5a608e7c 10 */
alexpirciu 1:ceee5a608e7c 11
alexpirciu 1:ceee5a608e7c 12 /* Include guard */
alexpirciu 1:ceee5a608e7c 13 #ifndef BLINKER_HPP
alexpirciu 1:ceee5a608e7c 14 #define BLINKER_HPP
alexpirciu 1:ceee5a608e7c 15
alexpirciu 1:ceee5a608e7c 16 /* The mbed library */
alexpirciu 1:ceee5a608e7c 17 #include <mbed.h>
alexpirciu 1:ceee5a608e7c 18 #include <TaskManager/taskmanager.hpp>
alexpirciu 1:ceee5a608e7c 19
alexpirciu 1:ceee5a608e7c 20
alexpirciu 1:ceee5a608e7c 21 namespace examples{
alexpirciu 1:ceee5a608e7c 22
alexpirciu 1:ceee5a608e7c 23 /**
alexpirciu 1:ceee5a608e7c 24 * @brief It is used for toggling an LED.
alexpirciu 1:ceee5a608e7c 25 *
alexpirciu 1:ceee5a608e7c 26 */
alexpirciu 1:ceee5a608e7c 27 class CBlinker : public task::CTask
alexpirciu 1:ceee5a608e7c 28 {
alexpirciu 1:ceee5a608e7c 29 public:
alexpirciu 1:ceee5a608e7c 30 /* Construnctor */
alexpirciu 1:ceee5a608e7c 31 CBlinker(uint32_t f_period, DigitalOut f_led);
alexpirciu 1:ceee5a608e7c 32 private:
alexpirciu 1:ceee5a608e7c 33 /* Run method */
alexpirciu 1:ceee5a608e7c 34 virtual void _run();
alexpirciu 1:ceee5a608e7c 35 /* Digital output line connected to a LED */
alexpirciu 1:ceee5a608e7c 36 DigitalOut m_led;
alexpirciu 1:ceee5a608e7c 37 };
alexpirciu 1:ceee5a608e7c 38 }; // namespace examples
alexpirciu 1:ceee5a608e7c 39
alexpirciu 1:ceee5a608e7c 40 #endif