aboutsummaryrefslogtreecommitdiffstats
path: root/src/stepper.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-06-08 21:33:50 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-06-14 14:00:53 -0400
commitb0524947e5a86bdbdd58dab42de3363a627e6910 (patch)
tree1187da49413ab45f0133372ce2778e19a34097c4 /src/stepper.h
parentfa85094cbb139c734150802b02e22913abcfccb3 (diff)
downloadkutter-b0524947e5a86bdbdd58dab42de3363a627e6910.tar.gz
kutter-b0524947e5a86bdbdd58dab42de3363a627e6910.tar.xz
kutter-b0524947e5a86bdbdd58dab42de3363a627e6910.zip
sched: Use uint_fast8_t for return type of timers
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>
Diffstat (limited to 'src/stepper.h')
-rw-r--r--src/stepper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stepper.h b/src/stepper.h
index 9a81b56e..f4019ae5 100644
--- a/src/stepper.h
+++ b/src/stepper.h
@@ -5,7 +5,7 @@
enum { STEPPER_POSITION_BIAS=0x40000000 };
-uint8_t stepper_event(struct timer *t);
+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);