MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/peripheral/NanoTimer.hh
2024-06-07 11:12:56 +03:00

31 lines
564 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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