示例#1
0
文件: ipc_msgq.c 项目: open-power/occ
///////////////////////////////////////////////////////////////////////////////
/// Associate a message queue with a function ID (commands recieved with the
/// specified function id will be placed on the message queue).
///
int ipc_register_msgq(uint32_t func_id, ipc_msgq_t* msgq)
{
    return ipc_set_handler(func_id, ipc_msgq_handler, msgq);
}
示例#2
0
/**
 *  \brief Configure the IPC.
 */
static void configure_ipc(void)
{
	ipc_set_handler(IPC1, IPC_INTERRUPT_SRC_IRQ0, ipc_irq_handler);
	ipc_enable_interrupt(IPC1, IPC_INTERRUPT_SRC_IRQ0);
	NVIC_EnableIRQ(IPC1_IRQn);
}