ME 507 Romi++
Cylindrical Differential Drive Robot created for ME 507 at Cal Poly in Spring 2025
Loading...
Searching...
No Matches
time_utils.h
Go to the documentation of this file.
1
/*
2
* time_utils.h
3
*
4
* Created on: May 27, 2025
5
* Author: jacka
6
*/
7
8
#ifndef INC_TIME_UTILS_H_
9
#define INC_TIME_UTILS_H_
10
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
#include <stm32f4xx_hal.h>
23
#include <stdint.h>
24
30
uint32_t
micros
(
void
);
31
37
void
delay_us
(uint32_t us);
38
39
#ifdef __cplusplus
40
}
41
#endif
42
43
#endif
/* INC_TIME_UTILS_H_ */
delay_us
void delay_us(uint32_t us)
Delays execution for a specified number of microseconds.
Definition
time_utils.c:28
micros
uint32_t micros(void)
Returns the number of microseconds since the timer started.
Definition
time_utils.c:18
Inc
time_utils.h
Generated by
1.14.0