diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-10 22:00:54 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-10 22:00:54 +0000 |
commit | 7c5169d4c5f1e7b7b2cb0a8ebe247991d3ee8632 (patch) | |
tree | 92725e7669fe096d737903e1b53ab9bb89be547f /firmware/export | |
parent | 2a3acde58f15be79cb2d471c22d680eb6a0d18f6 (diff) |
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
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/kernel.h | 20 |
1 files changed, 10 insertions, 10 deletions
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; }; |