Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
Diff: utils.h
- Revision:
- 8:973dcd190672
- Parent:
- 1:871d3066c2ab
- Child:
- 23:61af0317e404
--- a/utils.h Tue May 29 14:40:50 2018 +0000 +++ b/utils.h Thu May 31 15:25:37 2018 +0000 @@ -11,6 +11,11 @@ (ch == '\f'); } +inline us_timestamp_t ms_to_us(const uint16_t& ms) +{ + return ((us_timestamp_t)ms)*1000; +} + template <typename V> V parseUnsignedFromSerial(const V& defaultvalue) {