diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-05-16 14:49:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-05-16 14:49:41 +0000 |
commit | 53f1b747726d85020beca994f6fe67a5e9af7b8e (patch) | |
tree | 72bbc0235de15168314bc3b5c803464f2c16f667 /src/include/queues.h | |
parent | b20088a8cb72e3f3e694e309671cd7f96fb552dc (diff) | |
download | ChibiOS-53f1b747726d85020beca994f6fe67a5e9af7b8e.tar.gz ChibiOS-53f1b747726d85020beca994f6fe67a5e9af7b8e.tar.bz2 ChibiOS-53f1b747726d85020beca994f6fe67a5e9af7b8e.zip |
Added static initializers for mailboxes and memory pools.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@978 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/queues.h')
-rw-r--r-- | src/include/queues.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/queues.h b/src/include/queues.h index d6c7d46fc..6bd98b4f1 100644 --- a/src/include/queues.h +++ b/src/include/queues.h @@ -112,10 +112,10 @@ typedef GenericQueue InputQueue; * @param inotify input notification callback pointer */ #define _INPUTQUEUE_DATA(name, buffer, size, inotify) { \ - buffer, \ - buffer + size, \ - buffer, \ - buffer, \ + (uint8_t *)(buffer), \ + (uint8_t *)(buffer) + size, \ + (uint8_t *)(buffer), \ + (uint8_t *)(buffer), \ _SEMAPHORE_DATA(name.q_sem, 0), \ inotify \ } @@ -174,10 +174,10 @@ typedef GenericQueue OutputQueue; * @param onotify output notification callback pointer */ #define _OUTPUTQUEUE_DATA(name, buffer, size, onotify) { \ - buffer, \ - buffer + size, \ - buffer, \ - buffer, \ + (uint8_t *)(buffer), \ + (uint8_t *)(buffer) + size, \ + (uint8_t *)(buffer), \ + (uint8_t *)(buffer), \ _SEMAPHORE_DATA(name.q_sem, size), \ onotify \ } |