From 7c5169d4c5f1e7b7b2cb0a8ebe247991d3ee8632 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 10 Jan 2005 22:00:54 +0000 Subject: Jean-Philippe Bernardy: fixed to use long for 32 bit values git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5555 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/kernel.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index f1fd2a7a33..df4f8c4d76 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -33,19 +33,19 @@ #define QUEUE_LENGTH_MASK (QUEUE_LENGTH - 1) /* System defined message ID's, occupying the top 5 bits of the event ID */ -#define SYS_EVENT 0x80000000 /* SYS events are negative */ -#define SYS_USB_CONNECTED ((int)(SYS_EVENT | (1 << 27))) -#define SYS_USB_CONNECTED_ACK ((int)(SYS_EVENT | (2 << 27))) -#define SYS_USB_DISCONNECTED ((int)(SYS_EVENT | (3 << 27))) -#define SYS_USB_DISCONNECTED_ACK ((int)(SYS_EVENT | (4 << 27))) -#define SYS_TIMEOUT ((int)(SYS_EVENT | (5 << 27))) -#define SYS_MMC_INSERTED ((int)(SYS_EVENT | (6 << 27))) -#define SYS_MMC_EXTRACTED ((int)(SYS_EVENT | (7 << 27))) -#define SYS_POWEROFF ((int)(SYS_EVENT | (8 << 27))) +#define SYS_EVENT (long)0x80000000 /* SYS events are negative */ +#define SYS_USB_CONNECTED ((SYS_EVENT | ((long)1 << 27))) +#define SYS_USB_CONNECTED_ACK ((SYS_EVENT | ((long)2 << 27))) +#define SYS_USB_DISCONNECTED ((SYS_EVENT | ((long)3 << 27))) +#define SYS_USB_DISCONNECTED_ACK ((SYS_EVENT | ((long)4 << 27))) +#define SYS_TIMEOUT ((SYS_EVENT | ((long)5 << 27))) +#define SYS_MMC_INSERTED ((SYS_EVENT | ((long)6 << 27))) +#define SYS_MMC_EXTRACTED ((SYS_EVENT | ((long)7 << 27))) +#define SYS_POWEROFF ((SYS_EVENT | ((long)8 << 27))) struct event { - int id; + long id; void *data; }; -- cgit v1.2.3