Upgrade to Zephyr 2.4

- Make all struct device * constant
- Add additional argument to PWM nodes in devicetree
- Track customized LibreSolar/zephyr branch in platformio
- Update OLED submodule
This commit is contained in:
Martin Jäger
2020-11-09 20:07:49 +01:00
parent 62d28d9e5e
commit 3d9c4589cd
19 changed files with 42 additions and 29 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ void eeprom_restore_data()
uint8_t buf_req[300]; // ThingSet request buffer
int err;
struct device *eeprom_dev = device_get_binding("EEPROM_0");
const struct device *eeprom_dev = device_get_binding("EEPROM_0");
// EEPROM header
uint8_t buf_header[EEPROM_HEADER_SIZE] = {}; // initialize to avoid compiler warning
@@ -114,7 +114,7 @@ void eeprom_store_data()
{
uint8_t buf[300];
struct device *eeprom_dev = device_get_binding("EEPROM_0");
const struct device *eeprom_dev = device_get_binding("EEPROM_0");
int len = ts.bin_pub(buf + EEPROM_HEADER_SIZE, sizeof(buf) - EEPROM_HEADER_SIZE, PUB_NVM);
uint32_t crc = _calc_crc(buf + EEPROM_HEADER_SIZE, len);