diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-08 21:33:50 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-14 14:00:53 -0400 |
commit | b0524947e5a86bdbdd58dab42de3363a627e6910 (patch) | |
tree | 1187da49413ab45f0133372ce2778e19a34097c4 /src/stepper.h | |
parent | fa85094cbb139c734150802b02e22913abcfccb3 (diff) | |
download | kutter-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.h | 2 |
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); |