12.07.2015 Views

CooCox CoOS 用户手册

CooCox CoOS 用户手册

CooCox CoOS 用户手册

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CooCox</strong> <strong>CoOS</strong> ID ID-1 #include "CCRTOS.h"#define MEM_BLOCK_NUM 10OS_MMID mmc;unsigned int MemoryBlock[100];void TaskN (void *pdata){.../* Create a memory partition *//* Memory size: 100*4 bytes, *//* Block num: 10 *//* Block size 100*4/10 = 40 bytes */mmc=CoCreateMemPartition((U8*)MemoryBlock,100*4/MEM_BLOCK_NUM,MEM_BLOCK_NUM);if (mmc == E_CREATE_FAIL){printf("Create memory partition fail !\n");}else{printf("Memory Partition ID : %d \n", mmc);}...}12) blockSize 0blockNum 26.5.4 CoDelMemoryPartition()StatusType CoDelMemoryPartition(OS_MMID mmID); mmID:68

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!