diff options
Diffstat (limited to 'src/mailbox.c')
-rw-r--r-- | src/mailbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailbox.c b/src/mailbox.c index eaf0955..aacb747 100644 --- a/src/mailbox.c +++ b/src/mailbox.c | |||
@@ -21,7 +21,7 @@ static inline const void* msg_data(Message msg) { | |||
21 | return (const void*)((uintptr_t)(msg >> 4)); | 21 | return (const void*)((uintptr_t)(msg >> 4)); |
22 | } | 22 | } |
23 | 23 | ||
24 | static inline Message msg_make(uint8_t channel, const void* data) { | 24 | static inline Message msg_make(uint8_t channel, volatile const void* data) { |
25 | return ((uintptr_t)(data) << 4) | (channel & 0xf); | 25 | return ((uintptr_t)(data) << 4) | (channel & 0xf); |
26 | } | 26 | } |
27 | 27 | ||
@@ -64,7 +64,7 @@ const Mail* mbox_read(uint8_t channel) { | |||
64 | return (const Mail*)(msg_data(msg)); | 64 | return (const Mail*)(msg_data(msg)); |
65 | } | 65 | } |
66 | 66 | ||
67 | void mbox_write(uint8_t channel, const void* mail) { | 67 | void mbox_write(uint8_t channel, volatile const void* mail) { |
68 | // Wait until the outbox is clear. | 68 | // Wait until the outbox is clear. |
69 | while (outbox_full(pMailbox)); | 69 | while (outbox_full(pMailbox)); |
70 | // Send the mail. | 70 | // Send the mail. |