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

add void restart(void) and uint16_t getVCC(void) to Esp class

This commit is contained in:
Markus Sattler
2015-04-17 11:05:02 +02:00
parent 0bfd5cb396
commit 6cf87708c5
2 changed files with 19 additions and 6 deletions

View File

@ -40,12 +40,12 @@ void EspClass::wdtEnable(int)
ets_wdt_enable();
}
void EspClass::wdtDisable()
void EspClass::wdtDisable(void)
{
ets_wdt_disable();
}
void EspClass::wdtFeed()
void EspClass::wdtFeed(void)
{
wdt_feed();
}
@ -56,7 +56,17 @@ void EspClass::deepSleep(uint32_t time_us, WakeMode mode)
system_deep_sleep(time_us);
}
void EspClass::reset()
void EspClass::reset(void)
{
((void (*)(void))0x40000080)();
}
void EspClass::restart(void)
{
system_restart();
}
uint16_t EspClass::getVCC(void)
{
return system_get_vdd33();
}