From 2e670be61c1c9ad7e77ff14b6f1b43e859bfbbb6 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 17 Mar 2022 22:58:42 +0100 Subject: [PATCH] Update to latest GPIO types --- tasmota/berry/include/be_gpio_defines.h | 13 +++++++++++++ tools/lv_gpio/lv_gpio_enum.h | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/tasmota/berry/include/be_gpio_defines.h b/tasmota/berry/include/be_gpio_defines.h index 1fad4d944..ec2271073 100644 --- a/tasmota/berry/include/be_gpio_defines.h +++ b/tasmota/berry/include/be_gpio_defines.h @@ -14,9 +14,11 @@ const be_const_member_t lv_gpio_constants[] = { { "ADC_INPUT", (int32_t) GPIO_ADC_INPUT }, { "ADC_JOY", (int32_t) GPIO_ADC_JOY }, { "ADC_LIGHT", (int32_t) GPIO_ADC_LIGHT }, + { "ADC_MQ", (int32_t) GPIO_ADC_MQ }, { "ADC_PH", (int32_t) GPIO_ADC_PH }, { "ADC_RANGE", (int32_t) GPIO_ADC_RANGE }, { "ADC_TEMP", (int32_t) GPIO_ADC_TEMP }, + { "ADE7880_IRQ", (int32_t) GPIO_ADE7880_IRQ }, { "ADE7953_IRQ", (int32_t) GPIO_ADE7953_IRQ }, { "ARIRFRCV", (int32_t) GPIO_ARIRFRCV }, { "ARIRFSEL", (int32_t) GPIO_ARIRFSEL }, @@ -29,6 +31,8 @@ const be_const_member_t lv_gpio_constants[] = { { "BL0939_RX", (int32_t) GPIO_BL0939_RX }, { "BL0940_RX", (int32_t) GPIO_BL0940_RX }, { "BL0942_RX", (int32_t) GPIO_BL0942_RX }, + { "BL6523_RX", (int32_t) GPIO_BL6523_RX }, + { "BL6523_TX", (int32_t) GPIO_BL6523_TX }, { "BOILER_OT_RX", (int32_t) GPIO_BOILER_OT_RX }, { "BOILER_OT_TX", (int32_t) GPIO_BOILER_OT_TX }, { "BS814_CLK", (int32_t) GPIO_BS814_CLK }, @@ -154,6 +158,7 @@ const be_const_member_t lv_gpio_constants[] = { { "OLED_RESET", (int32_t) GPIO_OLED_RESET }, { "OPEN_DRAIN", OPEN_DRAIN }, { "OPTION_A", (int32_t) GPIO_OPTION_A }, + { "OPTION_E", (int32_t) GPIO_OPTION_E }, { "OUTPUT", OUTPUT }, { "OUTPUT_HI", (int32_t) GPIO_OUTPUT_HI }, { "OUTPUT_LO", (int32_t) GPIO_OUTPUT_LO }, @@ -180,6 +185,7 @@ const be_const_member_t lv_gpio_constants[] = { { "RDM6300_RX", (int32_t) GPIO_RDM6300_RX }, { "REL1", (int32_t) GPIO_REL1 }, { "REL1_INV", (int32_t) GPIO_REL1_INV }, + { "RESET", (int32_t) GPIO_RESET }, { "RFRECV", (int32_t) GPIO_RFRECV }, { "RFSEND", (int32_t) GPIO_RFSEND }, { "RF_SENSOR", (int32_t) GPIO_RF_SENSOR }, @@ -196,6 +202,8 @@ const be_const_member_t lv_gpio_constants[] = { { "SDCARD_CS", (int32_t) GPIO_SDCARD_CS }, { "SDM120_RX", (int32_t) GPIO_SDM120_RX }, { "SDM120_TX", (int32_t) GPIO_SDM120_TX }, + { "SDM230_RX", (int32_t) GPIO_SDM230_RX }, + { "SDM230_TX", (int32_t) GPIO_SDM230_TX }, { "SDM630_RX", (int32_t) GPIO_SDM630_RX }, { "SDM630_TX", (int32_t) GPIO_SDM630_TX }, { "SDM72_RX", (int32_t) GPIO_SDM72_RX }, @@ -205,12 +213,17 @@ const be_const_member_t lv_gpio_constants[] = { { "SENSOR_END", (int32_t) GPIO_SENSOR_END }, { "SHELLY_DIMMER_BOOT0", (int32_t) GPIO_SHELLY_DIMMER_BOOT0 }, { "SHELLY_DIMMER_RST_INV", (int32_t) GPIO_SHELLY_DIMMER_RST_INV }, + { "SHIFT595_OE", (int32_t) GPIO_SHIFT595_OE }, + { "SHIFT595_RCLK", (int32_t) GPIO_SHIFT595_RCLK }, + { "SHIFT595_SER", (int32_t) GPIO_SHIFT595_SER }, + { "SHIFT595_SRCLK", (int32_t) GPIO_SHIFT595_SRCLK }, { "SI7021", (int32_t) GPIO_SI7021 }, { "SM16716_CLK", (int32_t) GPIO_SM16716_CLK }, { "SM16716_DAT", (int32_t) GPIO_SM16716_DAT }, { "SM16716_SEL", (int32_t) GPIO_SM16716_SEL }, { "SM2135_CLK", (int32_t) GPIO_SM2135_CLK }, { "SM2135_DAT", (int32_t) GPIO_SM2135_DAT }, + { "SOLAXX1_RTS", (int32_t) GPIO_SOLAXX1_RTS }, { "SOLAXX1_RX", (int32_t) GPIO_SOLAXX1_RX }, { "SOLAXX1_TX", (int32_t) GPIO_SOLAXX1_TX }, { "SPI_CLK", (int32_t) GPIO_SPI_CLK }, diff --git a/tools/lv_gpio/lv_gpio_enum.h b/tools/lv_gpio/lv_gpio_enum.h index bd0ba6923..ab9b92aeb 100644 --- a/tools/lv_gpio/lv_gpio_enum.h +++ b/tools/lv_gpio/lv_gpio_enum.h @@ -282,4 +282,20 @@ HM330X_SET = GPIO_HM330X_SET HEARTBEAT = GPIO_HEARTBEAT HEARTBEAT_INV = GPIO_HEARTBEAT_INV +SHIFT595_SRCLK = GPIO_SHIFT595_SRCLK +SHIFT595_RCLK = GPIO_SHIFT595_RCLK +SHIFT595_OE = GPIO_SHIFT595_OE +SHIFT595_SER = GPIO_SHIFT595_SER +SOLAXX1_RTS = GPIO_SOLAXX1_RTS +OPTION_E = GPIO_OPTION_E +SDM230_TX = GPIO_SDM230_TX +SDM230_RX = GPIO_SDM230_RX +ADC_MQ = GPIO_ADC_MQ +CM11_TXD = GPIO_CM11_TXD +CM11_RXD = GPIO_CM11_RXD +BL6523_TX = GPIO_BL6523_TX +BL6523_RX = GPIO_BL6523_RX +ADE7880_IRQ = GPIO_ADE7880_IRQ +RESET = GPIO_RESET + SENSOR_END = GPIO_SENSOR_END