openpilot/opendbc_repo/opendbc/safety/tests/libsafety/fake_stm.h
Vehicle Researcher c5d5c5d1f3 openpilot v0.10.1 release
date: 2025-10-24T00:30:59
master commit: 405631baf9685e171a0dd19547cb763f1b163d18
2025-10-24 00:31:03 -07:00

13 lines
265 B
C

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#define ALLOW_DEBUG
// TODO: time should just be passed into the hooks we expose
uint32_t timer_cnt = 0;
uint32_t microsecond_timer_get(void);
uint32_t microsecond_timer_get(void) {
return timer_cnt;
}