CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
宏定义 | 枚举 | 函数 | 变量
flash_manage_outside_port.c 文件参考
#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)]
 

宏定义说明

◆ FLASH_MANAGE_MAX_PARA_NUM_OUTSIDE

#define FLASH_MANAGE_MAX_PARA_NUM_OUTSIDE   (6)

◆ FMO_CI_ASSERT

#define FMO_CI_ASSERT (   x,
  msg 
)
值:
if( ( x ) == 0 ) \
{ \
mprintf("%s",msg); \
mprintf("FMO Line:%d\n",__LINE__); \
while(1) asm volatile ("ebreak"); \
}

枚举类型说明

◆ flash_req_typt_t

枚举值
FLASH_REQ_READ 
FLASH_REQ_WRITE 
FLASH_REQ_ERASE 
FLASH_REQ_READ_UNIQUE_ID 
FLASH_REQ_MAX_NUM 

函数说明

◆ flash_manage_ept_cal_serve_rpmsg()

static void flash_manage_ept_cal_serve_rpmsg ( char *  para,
uint32_t  size 
)
static

◆ flash_manage_give_op_done_sem()

static void flash_manage_give_op_done_sem ( flash_req_typt_t  op_type)
static

◆ flash_manage_nuclear_com_outside_port_init()

void flash_manage_nuclear_com_outside_port_init ( void  )

◆ flash_manage_nuclear_com_outside_serve_cb()

static int32_t flash_manage_nuclear_com_outside_serve_cb ( void *  payload,
uint32_t  payload_len,
uint32_t  src,
void *  priv 
)
static

◆ flash_manage_outside_port_init()

void flash_manage_outside_port_init ( void  )

◆ flash_manage_req_wait_op_done_sem()

static void flash_manage_req_wait_op_done_sem ( flash_req_typt_t  op_type)
static

◆ give_flash_sem()

static void give_flash_sem ( void  )
static

◆ is_flash_power_off()

void is_flash_power_off ( bool *  state)

◆ wait_flash_sem()

static void wait_flash_sem ( void  )
static

◆ xip_read_flash()

uint32_t xip_read_flash ( uint8_t *  buf,
uint32_t  addr,
uint32_t  size 
)

变量说明

◆ flash_ctl_xSemaphore

SemaphoreHandle_t flash_ctl_xSemaphore = NULL

◆ flash_manage_nuclear_com_outside_buf

uint32_t flash_manage_nuclear_com_outside_buf[(6)]
static

◆ flash_req_op_done_event_group

EventGroupHandle_t flash_req_op_done_event_group = NULL
static

◆ tmp

volatile char tmp[32]
static