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:
parent
5b767a37eb
commit
72051eea91
@ -264,13 +264,6 @@ uint8_t EspClass::getBootMode(void)
|
|||||||
return system_get_boot_mode();
|
return system_get_boot_mode();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef F_CPU
|
|
||||||
uint8_t EspClass::getCpuFreqMHz(void)
|
|
||||||
{
|
|
||||||
return system_get_cpu_freq();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uint32_t EspClass::getFlashChipId(void)
|
uint32_t EspClass::getFlashChipId(void)
|
||||||
{
|
{
|
||||||
static uint32_t flash_chip_id = 0;
|
static uint32_t flash_chip_id = 0;
|
||||||
|
@ -123,12 +123,12 @@ class EspClass {
|
|||||||
|
|
||||||
#if defined(F_CPU) || defined(CORE_MOCK)
|
#if defined(F_CPU) || defined(CORE_MOCK)
|
||||||
constexpr uint8_t getCpuFreqMHz() const
|
constexpr uint8_t getCpuFreqMHz() const
|
||||||
|
#else
|
||||||
|
uint8_t getCpuFreqMHz() const
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return esp_get_cpu_freq_mhz();
|
return esp_get_cpu_freq_mhz();
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
uint8_t getCpuFreqMHz() const;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uint32_t getFlashChipId();
|
uint32_t getFlashChipId();
|
||||||
uint8_t getFlashChipVendorId();
|
uint8_t getFlashChipVendorId();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user