Protective Stop
Loading...
Searching...
No Matches
os.h
1// SPDX-FileCopyrightText: 2026 Polymath Robotics, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4#ifndef PSTOP_OS_H
5#define PSTOP_OS_H
6
7#include <stdint.h>
8
12typedef uint64_t (* get_current_time_t)(void);
13
21typedef struct pstop_os_env_t {
22
26 get_current_time_t get_time_cb;
27
29
33void pstop_os_env_init(pstop_os_env_t *env);
34
35void pstop_os_env_set_time_cb(pstop_os_env_t *env, get_current_time_t time_cb);
36
37#endif /* PSTOP_OS_H */
This struct contains a callback function to return the current time in milliseconds.
Definition os.h:21
get_current_time_t get_time_cb
Callback to return the current time.
Definition os.h:26