MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/UMLibrary/peripheral/NanoTimer.hh

31 lines
560 B
C++

/*
* NanoTimer.hh
*
* Created on: 27 ÿíâ. 2022 ã.
* Author: titov
*/
#ifndef UMLIBRARY_PERIPHERAL_NANOTIMER_HH_
#define UMLIBRARY_PERIPHERAL_NANOTIMER_HH_
#include <cstddef>
#include <stdint.h>
namespace peripheral {
namespace nanotimer {
typedef uint32_t time_us;
typedef uint32_t time_ns;
typedef uint32_t stamp;
extern stamp ( * point)();
extern time_ns ( * time)( stamp );
extern time_ns ( * delta)( stamp start, stamp point );
}
}
#endif /* UMLIBRARY_PERIPHERAL_NANOTIMER_HH_ */