? ? uint32_t ret = NO_ERROR;
? ? uint8_t *test_data = (uint8_t *)calloc(1, 10);
? ? memset(test_data, 0x12, 10);
? ? unsigned long irq_status;
? ? SYS_DisableAllIrq(&irq_status);? ?// 關(guān)閉所有中斷,并返回已經(jīng)開啟中斷
? ? ret = FlashBlockErase(PARAM_FALSH_ADDR);
? ? ret = FlashWriteBuf(PARAM_FALSH_ADDR, (PUINT32)test_data, 10);
? ? SYS_RecoverIrq(irq_status); // 恢復(fù)中斷
熱門產(chǎn)品 :
USB3.0 HUB控制器:CH634