Home
last modified time | relevance | path

Searched refs:mem1 (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/esp_hw_support/test/
Dtest_spiram_cache_flush.c150 char *mem1=malloc(0x10000); variable
161 printf("RAM: Got %p and %p\n", mem1, mem2);
162 assert(mem1);
164 for (int i=0; i<0x10000; i++) mem1[i]=i^0xAAAAAAAA;
167 memcpy(mem2, mem1, 0x10000);
168 if (memcmp(mem1, mem2, 0x10000)!=0) {
171 if (mem1[i]!=mem2[i]) {
172 … printf("Found real difference at index %d: 0x%x vs 0x%x\n", i, mem1[i], mem2[i]);
179 free(mem1);