3. Mailbox_read_test

3.1. Function description:

This demo shows the host read command from mailbox writed by kernel.

  • For host cpu, first link to mailbox, then wait kernel writing command to mailbox out and read out to compare.

  • For kernel cpu, write command to mailbox after the host link to mailbox, and then wait the host read out.

Note

  1. Need to kernel & host cpu running the same case in parallel, the program distinguish which is kernel or host according the core id to running program.

3.2. Test result:

If the host cpu link to mailbox and the data read out from mailbox is same with the data writed to mailbox by kernel, then print pass, if not print fail.

3.3. IO connection:

None