![]() |
CI130X SDK API手册
2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
|
#include "nn_and_flash_manage.h"
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "croutine.h"
#include "semphr.h"
#include "event_groups.h"
#include "flash_manage_outside_port.h"
#include "ci130x_nuclear_com.h"
#include <string.h>
#include <stdlib.h>
#include "ci130x_core_misc.h"
#include "status_share.h"
#include "romlib_runtime.h"
宏定义 | |
#define | FMO_CI_ASSERT(x, msg) |
#define | FLASH_MANAGE_MAX_PARA_NUM_OUTSIDE (6) |
枚举 | |
enum | flash_req_typt_t { FLASH_REQ_READ = 1<<0, FLASH_REQ_WRITE = 1<<1, FLASH_REQ_ERASE = 1<<2, FLASH_REQ_READ_UNIQUE_ID = 1<<3, FLASH_REQ_MAX_NUM = 1<<4 } |
函数 | |
static void | wait_flash_sem (void) |
static void | give_flash_sem (void) |
static void | flash_manage_req_wait_op_done_sem (flash_req_typt_t op_type) |
static void | flash_manage_ept_cal_serve_rpmsg (char *para, uint32_t size) |
void | is_flash_power_off (bool *state) |
static void | flash_manage_give_op_done_sem (flash_req_typt_t op_type) |
uint32_t | xip_read_flash (uint8_t *buf, uint32_t addr, uint32_t size) |
int32_t | post_read_flash (char *buf, uint32_t addr, uint32_t size) |
请求读flash,并等待读取完成 更多... | |
int32_t | post_erase_flash (uint32_t addr, uint32_t size) |
请求擦除flash,并等待擦除完成 更多... | |
int32_t | post_write_flash (char *buf, uint32_t addr, uint32_t size) |
请求写flash,并等待写完成 更多... | |
int32_t | post_spic_read_unique_id (uint8_t *unique_id) |
请求读flash unique id,并等待读取完成 更多... | |
void | flash_manage_outside_port_init (void) |
static int32_t | flash_manage_nuclear_com_outside_serve_cb (void *payload, uint32_t payload_len, uint32_t src, void *priv) |
void | flash_manage_nuclear_com_outside_port_init (void) |
变量 | |
static EventGroupHandle_t | flash_req_op_done_event_group = NULL |
SemaphoreHandle_t | flash_ctl_xSemaphore = NULL |
static volatile char | tmp [32] |
static uint32_t | flash_manage_nuclear_com_outside_buf [(6)] |
#define FLASH_MANAGE_MAX_PARA_NUM_OUTSIDE (6) |
#define FMO_CI_ASSERT | ( | x, | |
msg | |||
) |
|
static |
|
static |
void flash_manage_nuclear_com_outside_port_init | ( | void | ) |
|
static |
void flash_manage_outside_port_init | ( | void | ) |
|
static |
|
static |
void is_flash_power_off | ( | bool * | state | ) |
|
static |
uint32_t xip_read_flash | ( | uint8_t * | buf, |
uint32_t | addr, | ||
uint32_t | size | ||
) |
SemaphoreHandle_t flash_ctl_xSemaphore = NULL |
|
static |
|
static |
|
static |