mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-30 12:30:59 +02:00
Update IDF to aaf1239 (#1539)
* fix sdmmc config * Fix warnings in EEPROM from @Curclamas * remove leftover TAG in EEPROM * Initial add of @stickbreaker i2c * Add log_n * fix warnings when log is off * i2c code clean up and reorganization * add flags to interrupt allocator * fix sdmmc config * Fix warnings in EEPROM from @Curclamas * remove leftover TAG in EEPROM * fix errors with latest IDF * fix debug optimization (#1365) incorrect optimization for debugging tick markers. * Fix some missing BT header * Change BTSerial log calls * Update BLE lib * Arduino-ESP32 release management scripted (#1515) * Calculate an absolute path for a custom partitions table (#1452) * * Arduino-ESP32 release management scripted (ready-to-merge) * * secure env for espressif/arduino-esp32 * * build tests enabled * gitter webhook enabled * * gitter room link fixed * better comment * * filepaths fixed * BT Serial adjustments * * don't run sketch builds & tests for tagged builds * Return false from WiFi.hostByName() if hostname is not resolved * Free BT Memory when BT is not used * WIFI_MODE_NULL is not supported anymore * Select some key examples to build with PlatformIO to save some time * Update BLE lib * Fixed BLE lib * Major WiFi overhaul - auto reconnect on connection loss now works - moved to event groups - some code clean up and procedure optimizations - new methods to get a more elaborate system ststus * Add cmake tests to travis * Add initial AsyncUDP * Add NetBIOS lib and fix CMake includes * Add Initial WebServer * Fix WebServer and examples * travis not quiting on build fail * Try different travis build * Update IDF to aaf1239 * Fix WPS Example * fix script permission and add some fail tests to sketch builder * Add missing space in WiFiClient::write(Stream &stream)
This commit is contained in:
@ -29,14 +29,14 @@
|
||||
|
||||
#include <esp_log.h>
|
||||
|
||||
static const char* TAG = "eeprom";
|
||||
|
||||
EEPROMClass::EEPROMClass(uint32_t sector)
|
||||
: _sector(sector)
|
||||
, _data(0)
|
||||
, _size(0)
|
||||
, _dirty(false)
|
||||
, _mypart(NULL)
|
||||
, _name("eeprom")
|
||||
, _user_defined_size(0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -45,6 +45,7 @@ EEPROMClass::EEPROMClass(const char* name, uint32_t user_defined_size)
|
||||
, _data(0)
|
||||
, _size(0)
|
||||
, _dirty(false)
|
||||
, _mypart(NULL)
|
||||
, _name(name)
|
||||
, _user_defined_size(user_defined_size)
|
||||
{
|
||||
@ -55,7 +56,9 @@ EEPROMClass::EEPROMClass(void)
|
||||
, _data(0)
|
||||
, _size(0)
|
||||
, _dirty(false)
|
||||
, _mypart(NULL)
|
||||
, _name("eeprom")
|
||||
, _user_defined_size(0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -178,85 +181,85 @@ uint16_t EEPROMClass::length ()
|
||||
*/
|
||||
uint8_t EEPROMClass::readByte (int address)
|
||||
{
|
||||
uint8_t value;
|
||||
uint8_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
int8_t EEPROMClass::readChar (int address)
|
||||
{
|
||||
int8_t value;
|
||||
int8_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
uint8_t EEPROMClass::readUChar (int address)
|
||||
{
|
||||
uint8_t value;
|
||||
uint8_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
int16_t EEPROMClass::readShort (int address)
|
||||
{
|
||||
int16_t value;
|
||||
int16_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
uint16_t EEPROMClass::readUShort (int address)
|
||||
{
|
||||
uint16_t value;
|
||||
uint16_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
int32_t EEPROMClass::readInt (int address)
|
||||
{
|
||||
int32_t value;
|
||||
int32_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
uint32_t EEPROMClass::readUInt (int address)
|
||||
{
|
||||
uint32_t value;
|
||||
uint32_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
int32_t EEPROMClass::readLong (int address)
|
||||
{
|
||||
int32_t value;
|
||||
int32_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
uint32_t EEPROMClass::readULong (int address)
|
||||
{
|
||||
uint32_t value;
|
||||
uint32_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
int64_t EEPROMClass::readLong64 (int address)
|
||||
{
|
||||
int64_t value;
|
||||
int64_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
uint64_t EEPROMClass::readULong64 (int address)
|
||||
{
|
||||
uint64_t value;
|
||||
uint64_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
float_t EEPROMClass::readFloat (int address)
|
||||
{
|
||||
float_t value;
|
||||
float_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
double_t EEPROMClass::readDouble (int address)
|
||||
{
|
||||
double_t value;
|
||||
double_t value = 0;
|
||||
return EEPROMClass::readAll (address, value);
|
||||
}
|
||||
|
||||
bool EEPROMClass::readBool (int address)
|
||||
{
|
||||
int8_t value;
|
||||
int8_t value = 0;
|
||||
return EEPROMClass::readAll (address, value) ? 1 : 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user