From b0524947e5a86bdbdd58dab42de3363a627e6910 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Jun 2016 21:33:50 -0400 Subject: 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 --- src/stepper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stepper.h') 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); -- cgit v1.2.3-70-g09d2