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
@@ -30,7 +30,7 @@ LOG_MODULE_REGISTER(ext_can, CONFIG_LOG_DEFAULT_LEVEL);
extern ThingSet ts;
extern uint16_t ts_can_node_id;
struct device *can_dev;
const struct device *can_dev;
#ifdef CONFIG_ISOTP
@@ -127,7 +127,7 @@ void can_pub_thread()
unsigned int can_id;
uint8_t can_data[8];
struct device *can_en_dev = device_get_binding(DT_GPIO_LABEL(CAN_EN_GPIO, gpios));
const struct device *can_en_dev = device_get_binding(DT_GPIO_LABEL(CAN_EN_GPIO, gpios));
gpio_pin_configure(can_en_dev, DT_GPIO_PIN(CAN_EN_GPIO, gpios),
DT_GPIO_FLAGS(CAN_EN_GPIO, gpios) | GPIO_OUTPUT_ACTIVE);
+1 -1
View File
@@ -173,7 +173,7 @@ void oled_update()
void oled_thread()
{
#if DT_NODE_EXISTS(DT_CHILD(DT_PATH(outputs), uext_en))
struct device *dev_uext_en = device_get_binding(DT_GPIO_LABEL(UEXT_EN_GPIO, gpios));
const struct device *dev_uext_en = device_get_binding(DT_GPIO_LABEL(UEXT_EN_GPIO, gpios));
gpio_pin_configure(dev_uext_en, DT_GPIO_PIN(UEXT_EN_GPIO, gpios),
DT_GPIO_FLAGS(UEXT_EN_GPIO, gpios) | GPIO_OUTPUT_ACTIVE);
#endif
+2 -2
View File
@@ -26,7 +26,7 @@
#error "No UART for ThingSet serial defined."
#endif
struct device *uart_dev = device_get_binding(UART_DEVICE_NAME);
const struct device *uart_dev = device_get_binding(UART_DEVICE_NAME);
static char buf_resp[CONFIG_THINGSET_SERIAL_TX_BUF_SIZE];
static char buf_req[CONFIG_THINGSET_SERIAL_RX_BUF_SIZE];
@@ -73,7 +73,7 @@ void process_asap()
* Read characters from stream until line end \n detected, signal command available then
* and wait for processing
*/
void process_input(void* user_data)
void process_input(const struct device *dev, void* user_data)
{
uint8_t c;