Skip to content

Commit 58f59fe

Browse files
lucasssvazAlan Carvalho de Assis
authored andcommitted
arch/xtensa/esp32s2: Fix SPIRAM compilation warnings
This commit aims to fix compilation warnings that happens when enabling SPIRAM for ESP32-S2
1 parent d82d73c commit 58f59fe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/xtensa/src/esp32s2/esp32s2_spiram.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ bool esp_spiram_test(void)
257257

258258
if (errct < 4)
259259
{
260-
merr("SPI SRAM error @ %08x:%08x/%08x \n", &spiram[p],
261-
spiram[p], p ^ 0xaaaaaaaa);
260+
merr("SPI SRAM error @ %p:%08x/%08x \n",
261+
&spiram[p], spiram[p], p ^ 0xaaaaaaaa);
262262
}
263263
}
264264
}

arch/xtensa/src/esp32s2/hardware/esp32s2_soc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <stdint.h>
2929
#include <stdbool.h>
3030

31+
#include "xtensa.h"
3132
#include "xtensa_attr.h"
3233

3334
/****************************************************************************

0 commit comments

Comments
 (0)