![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
#include <stdint.h>
#include <string.h>
#include "FreeRTOS.h"
#include "semphr.h"
#include "romlib_runtime.h"
#include "ci130x_mailbox.h"
#include "ci130x_mailbox_bnpu.h"
#include "ci130x_system.h"
#include "ci_assert.h"
#include "ci130x_core_eclic.h"
结构体 | |
struct | mailbox_reg_t |
struct | mail_box_reg_t |
struct | mailbox_t |
宏定义 | |
#define | CORE_MAGIC_ID (*(uint32_t *)0x0000001c) |
#define | BNPU_CORE_MAGIC_ID 0x55504E42 |
#define | MBC_CI_ASSERT(x, msg) |
#define | MAIL_BOX_FULL (1)/*other cpu not deal message*/ |
#define | MAIL_BOX_EMPTY (0)/*other cpu already deal message*/ |
#define | MAIL_BOX_SEND_TIMEOUT (0xfffffff) |
函数 | |
static uint32_t | set_core_number (void) |
uint32_t | get_core_number (void) |
void | mailbox_preinit (void) |
uint32_t | mailbox_init (mailbox_irq_cmd_cb_t callback_func) |
void | mailbox_deinit (void) |
uint32_t | mailbox_send_msg (uint32_t data0, uint32_t data1, mailbox_cmd_t cmd) |
static uint32_t | mailbox_receive_msg (uint32_t *data0, uint32_t *data1, mailbox_cmd_t *cmd) |
void | mailboxboot_sync (void) |
void | MAIL_BOX_IRQHandler (void) |
变量 | |
static mailbox_irq_cmd_cb_t | rpmsg_callback_func = NULL |
static mailbox_irq_cmd_cb_t | nuclear_com_callback_func = NULL |
static SemaphoreHandle_t | mailbox_semaphore = NULL |
mailbox_t * | mailbox_ports [2] = {(mailbox_t*)HAL_MAILBOX0_BASE, (mailbox_t*)HAL_MAILBOX1_BASE} |
static volatile int | boot_sync_host = 0 |
static volatile int | boot_sync_bnpu = 0 |
struct mailbox_reg_t |
struct mail_box_reg_t |
struct mailbox_t |
成员变量 | ||
---|---|---|
mail_box_reg_t | reg[2] |
#define BNPU_CORE_MAGIC_ID 0x55504E42 |
#define CORE_MAGIC_ID (*(uint32_t *)0x0000001c) |
#define MAIL_BOX_EMPTY (0)/*other cpu already deal message*/ |
#define MAIL_BOX_FULL (1)/*other cpu not deal message*/ |
#define MAIL_BOX_SEND_TIMEOUT (0xfffffff) |
#define MBC_CI_ASSERT | ( | x, | |
msg | |||
) |
|
inline |
void MAIL_BOX_IRQHandler | ( | void | ) |
void mailbox_deinit | ( | void | ) |
uint32_t mailbox_init | ( | mailbox_irq_cmd_cb_t | callback_func | ) |
void mailbox_preinit | ( | void | ) |
|
static |
uint32_t mailbox_send_msg | ( | uint32_t | data0, |
uint32_t | data1, | ||
mailbox_cmd_t | cmd | ||
) |
void mailboxboot_sync | ( | void | ) |
|
static |
|
static |
|
static |
mailbox_t* mailbox_ports[2] = {(mailbox_t*)HAL_MAILBOX0_BASE, (mailbox_t*)HAL_MAILBOX1_BASE} |
|
static |
|
static |
|
static |