pile_com_stm32/main/inc/utils.h
2024-03-30 18:47:02 +08:00

13 lines
264 B
C

#ifndef _UTILS_H_
#define _UTILS_H_
#include <stdint.h>
int GetCompileDateTime(uint16_t *DateTime);
uint32_t TickDiff(uint32_t comptime);
int scale(int raw, int raw_min, int raw_max,int eng_min, int eng_max);
int abs_sub_uint32(uint32_t a, uint32_t b);
#endif