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

31 lines
564 B
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* 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_ */