This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Application of Mailbox

How are the functions _init_box & _declare_box different from os_mbx_init & os_mbx_declare.
I am studying the their application and usage but am finding it quite confusing.

googled but cant find relevant results. havent come across any article that explains the memory allocation related to mailbox.

Am i correct in implementing mailbox in isr?

Parents
  • I haven't come across any article that talks about dynamic memory allocation, (and hence calloc, malloc) in the ISR. Will study these functions in more detail.

    But then, Per had suggested doing 1 byte transfer without allocating memory.

    Kindly refer to " sending single characters from a UART ISR doesn't require you to allocate any memory for a mailbox" post and let me know whats wrong in the implementation.

Reply
  • I haven't come across any article that talks about dynamic memory allocation, (and hence calloc, malloc) in the ISR. Will study these functions in more detail.

    But then, Per had suggested doing 1 byte transfer without allocating memory.

    Kindly refer to " sending single characters from a UART ISR doesn't require you to allocate any memory for a mailbox" post and let me know whats wrong in the implementation.

Children
No data