xilmailbox
Vitis Drivers API Documentation
xilmailbox_example.c File Reference

Overview

This example demonstrates the usage of mailbox library API's.

Each IPI channel can trigger an interrupt to itself and can exchange messages through the message buffer. This feature is used here to exercise the library APIs. Example control flow:

  • Initialize the XMailbox instance
  • Write a Message and Trigger IPI to Self in Blocing mode.
  • Interrupt handler receives IPI and Sends back response.
  • Read the received response and do a sanity check.
  • Print PASS or FAIL based on sanity check of response message
MODIFICATION HISTORY:
Ver   Who     Date     Changes


1.0 adk 14/02/19 Initial Release 1.2 adk 26/03/20 Updated the Remote Channel ID to use IPIPSU driver Canonical define inorder make this example work for all supported processors. 1.8 ht 05/30/23 Added support for system device-tree flow. 1.11 ht 11/12/24 Update description of TEST_MSG_LEN ht 11/25/24 Update Message length to accommodate for CRC bytes when IPI CRC is enabled ht 01/02/25 Fix GCC warnings.