techmannih/nema34-mounted-stepper-controller
A USB-C PD-powered RP2040 motor controller with protected 48 V power, DRV8262 dual-bridge drive for a NEMA34 motor, regenerative-braking resistor, isolated sensing, hardware interlocks, and telemetry/status interfaces.
- Version
- 0.3.113
- License
- unset
- Stars
- 1
firmware/tests/fakes/pico/time.h
#pragma once
#include "Arduino.h"
struct repeating_timer_t {};
inline unsigned timerStarts, timerStops;
inline bool cancel_repeating_timer(repeating_timer_t *) {++timerStops;return true;}
inline bool add_repeating_timer_us(int,bool (*)(repeating_timer_t *),void *,repeating_timer_t *) {++timerStarts;return true;}
inline uint32_t time_us_32(){return fakeNow*1000u+fakeMicros;}