mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
/* Copyright (C) 2022 Alif Semiconductor - All Rights Reserved.
|
|
* Use, distribution and modification of this code is permitted under the
|
|
* terms stated in the Alif Semiconductor Software License Agreement
|
|
*
|
|
* You should have received a copy of the Alif Semiconductor Software
|
|
* License Agreement with this file. If not, please write to:
|
|
* contact@alifsemi.com, or visit: https://alifsemi.com/license
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* @file mhu_driver.c
|
|
* @brief MHU driver
|
|
* @ingroup services
|
|
* @par
|
|
*/
|
|
#include "mhu_driver.h"
|
|
|
|
/**
|
|
* @fn void MHU_driver_initialize(mhu_driver_in_t * data_in,
|
|
* mhu_driver_out_t * data_out)
|
|
* @param data_in
|
|
* @param data_out
|
|
*/
|
|
void MHU_driver_initialize(mhu_driver_in_t * data_in,
|
|
mhu_driver_out_t * data_out)
|
|
{
|
|
MHU_sender_initialize(data_in->sender_base_address_list,
|
|
data_in->mhu_count,
|
|
data_in->send_msg_acked_callback);
|
|
MHU_receiver_initialize(data_in->receiver_base_address_list,
|
|
data_in->mhu_count,
|
|
data_in->rx_msg_callback);
|
|
|
|
data_out->send_message = MHU_send_message;
|
|
data_out->sender_irq_handler = MHU_send_message_irq_handler;
|
|
data_out->receiver_irq_handler = MHU_receive_message_irq_handler;
|
|
}
|