/* * Copyright (c) 2022, ArtInChip Technology Co., Ltd * * SPDX-License-Identifier: Apache-2.0 */ #include #ifdef RT_USING_FINSH #include #include #include #include #include #include #include "aic_osal.h" #define printf rt_kprintf struct memtest_para { long address; u32 size; char thread_name[32]; }; u8 do_mem_test(long address, u32 size) { u32 i; /**< 8bit test */ { u8 * p_u8 = (u8 *)address; for(i=0; i