ESP.getChipModel() and ESP.getChipCores() (#3847)

* ESP.getChipModel() returns model of the chip

* ESP.getChipCores() returns the core count.

* Example gives chip model, revision and core count.

* Read efuse for chipmodel

Co-authored-by: Martijn Scheepers <ms@SDNengineering.nl>
This commit is contained in:
Martijn Scheepers
2020-09-30 13:57:36 +02:00
committed by GitHub
parent e34e0b45de
commit 7e9d42da68
3 changed files with 32 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ public:
uint32_t getMaxAllocPsram();
uint8_t getChipRevision();
const char * getChipModel();
uint8_t getChipCores();
uint32_t getCpuFreqMHz(){ return getCpuFrequencyMhz(); }
inline uint32_t getCycleCount() __attribute__((always_inline));
const char * getSdkVersion();