/////////////////////////////////////////////////////////////////////////////// /// 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); }
/** * \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); }