From 708e9eb417ddf41ec345f2be70c4a32721608e4c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 29 Jan 2015 11:29:43 +0100 Subject: Replace enums with uint8_t Saves a few bytes, since enums are 16 bit --- common.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index e879e92..42737eb 100644 --- a/common.h +++ b/common.h @@ -27,12 +27,10 @@ extern volatile uint8_t wakeup; /* wakeup sources */ -enum { - WAKE_ACCEL = 0, - WAKE_GYRO = 1, - WAKE_I2C = 2, - WAKE_TIMER = 3, -}; +#define WAKE_ACCEL 0 +#define WAKE_GYRO 1 +#define WAKE_I2C 2 +#define WAKE_TIMER 3 #define shouldWakeup(x) (wakeup & (1 << x)) #define enableWakeup(x) wakeup |= 1 << x; -- cgit v1.2.3