1. Mailbox_int_test

1.1. Function description:

This demo shows how to trigger mailbox interrupt.

  • Host cpu write command to the linked mailbox will trigger the kernel interrupt of mailbox in full and the host mailbox not full interrupt after the command read out by kernel if the interrupt enabled.

  • Kernel cpu write command to the mailbox will trigger the host interrupt of mailbox out full and the kernel mailbox out free interrupt after the command read out by host if the interrupt enabled.

  • When has avaliable mailbox to link will trigger the host mailbox linkable interrupt if enable the interrupt.

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.

1.2. Test result:

If successfully trigger and enter interrupt service routine, then print pass, if not print fail.

1.3. IO connection:

None