Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
79d53bdc
Unverified
Commit
79d53bdc
authored
Oct 01, 2021
by
Marius Kintel
Committed by
GitHub
Oct 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ESP.getChipModel() to support ESP32-S2 (#5598)
parent
f3f6dad1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
cores/esp32/Esp.cpp
cores/esp32/Esp.cpp
+12
-1
No files found.
cores/esp32/Esp.cpp
View file @
79d53bdc
...
...
@@ -38,6 +38,7 @@ extern "C" {
#define ESP_FLASH_IMAGE_BASE 0x1000 // Flash offset containing flash size and spi mode
#elif CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/rom/spi_flash.h"
#include "soc/efuse_reg.h"
#define ESP_FLASH_IMAGE_BASE 0x1000
#elif CONFIG_IDF_TARGET_ESP32C3
#include "esp32c3/rom/spi_flash.h"
...
...
@@ -270,7 +271,17 @@ const char * EspClass::getChipModel(void)
return
"Unknown"
;
}
#elif CONFIG_IDF_TARGET_ESP32S2
return
"ESP32-S2"
;
uint32_t
pkg_ver
=
REG_GET_FIELD
(
EFUSE_RD_MAC_SPI_SYS_3_REG
,
EFUSE_PKG_VERSION
);
switch
(
pkg_ver
)
{
case
0
:
return
"ESP32-S2"
;
case
1
:
return
"ESP32-S2FH16"
;
case
2
:
return
"ESP32-S2FH32"
;
default:
return
"ESP32-S2 (Unknown)"
;
}
#elif CONFIG_IDF_TARGET_ESP32S3
return
"ESP32-S3"
;
#elif CONFIG_IDF_TARGET_ESP32C3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment