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>
This commit is contained in:
Kevin O'Connor 2016-06-08 21:33:50 -04:00
parent fa85094cbb
commit b0524947e5
7 changed files with 14 additions and 14 deletions

View file

@ -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);