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/endstop.c | |
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/endstop.c')
-rw-r--r-- | src/endstop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/endstop.c b/src/endstop.c index 6f155cda..c8aa58e6 100644 --- a/src/endstop.c +++ b/src/endstop.c @@ -23,7 +23,7 @@ struct end_stop { enum { ESF_HOMING=1, ESF_REPORT=2 }; // Timer callback for an end stop -static uint8_t +static uint_fast8_t end_stop_event(struct timer *t) { struct end_stop *e = container_of(t, struct end_stop, time); |