1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

Inline, fewer LOC, remove redundant definition in cpp.

This commit is contained in:
Dirk O. Kaar 2020-08-28 18:26:56 +02:00
parent 5b767a37eb
commit 72051eea91
2 changed files with 3 additions and 10 deletions

View File

@ -264,13 +264,6 @@ uint8_t EspClass::getBootMode(void)
return system_get_boot_mode();
}
#ifndef F_CPU
uint8_t EspClass::getCpuFreqMHz(void)
{
return system_get_cpu_freq();
}
#endif
uint32_t EspClass::getFlashChipId(void)
{
static uint32_t flash_chip_id = 0;

View File

@ -123,12 +123,12 @@ class EspClass {
#if defined(F_CPU) || defined(CORE_MOCK)
constexpr uint8_t getCpuFreqMHz() const
#else
uint8_t getCpuFreqMHz() const
#endif
{
return esp_get_cpu_freq_mhz();
}
#else
uint8_t getCpuFreqMHz() const;
#endif
uint32_t getFlashChipId();
uint8_t getFlashChipVendorId();