4. Mailbox_read_write_test
4.1. Function description:
This demo shows the read and write command.
For host cpu, first get linkable mailbox number and to link, then write command to mailbox and wait kernel read out to compare, finally host read command writed by kernel and to compare.
For kernel cpu, check one of mailbox that is linked, then read command from mailbox to compare, finally write command to mailbox and wait hots to read.
Note
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.
4.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 host & kernel, then print pass, if not print fail.
4.3. IO connection:
None