31 lines
564 B
C++
31 lines
564 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_ */
|