Differences

This shows you the differences between two versions of the page.

Link to this comparison view

chibios:book:kernel_mailboxes [2014/09/25 11:56]
127.0.0.1 external edit
chibios:book:kernel_mailboxes [2017/12/14 13:31] (current)
giovanni
Line 169: Line 169:
   /* Pre-filling the free buffers pool with the available buffers, the post   /* Pre-filling the free buffers pool with the available buffers, the post
      will not stop because the mailbox is large enough.*/      will not stop because the mailbox is large enough.*/
-  for (i == 0; i < NUM_BUFFERS;​ i++)+  for (i = 0; i < NUM_BUFFERS;​ i++)
     (void)chMBPost(&​free_buffers,​ (msg_t)&​buffers[i]);​     (void)chMBPost(&​free_buffers,​ (msg_t)&​buffers[i]);​