We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15aefe6 commit 782ccf2Copy full SHA for 782ccf2
drivers/hwinfo/hwinfo_esp32.c
@@ -15,7 +15,10 @@
15
16
ssize_t z_impl_hwinfo_get_device_id(uint8_t *buffer, size_t length)
17
{
18
-#if !defined(CONFIG_SOC_SERIES_ESP32)
+#if defined(CONFIG_SOC_SERIES_ESP32C2)
19
+ uint32_t rdata1 = sys_read32(EFUSE_RD_BLK2_DATA0_REG);
20
+ uint32_t rdata2 = sys_read32(EFUSE_RD_BLK2_DATA1_REG);
21
+#elif !defined(CONFIG_SOC_SERIES_ESP32)
22
uint32_t rdata1 = sys_read32(EFUSE_RD_MAC_SPI_SYS_0_REG);
23
uint32_t rdata2 = sys_read32(EFUSE_RD_MAC_SPI_SYS_1_REG);
24
#else
0 commit comments