mirror of
https://github.com/andreili/klipper.git
synced 2025-08-24 03:44:06 +02:00
Some architectures are faster passing regular integers than 8bit integers. Use uint_fast8_t so that the architecture chooses the appropriate type. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
15 lines
332 B
C
15 lines
332 B
C
#ifndef __STEPPER_H
|
|
#define __STEPPER_H
|
|
|
|
#include <stdint.h> // uint8_t
|
|
|
|
enum { STEPPER_POSITION_BIAS=0x40000000 };
|
|
|
|
uint_fast8_t stepper_event(struct timer *t);
|
|
void command_config_stepper(uint32_t *args);
|
|
struct stepper;
|
|
uint32_t stepper_get_position(struct stepper *s);
|
|
void stepper_stop(struct stepper *s);
|
|
|
|
#endif // stepper.h
|