Skip to content

Commit da08a17

Browse files
authored
Add support for Gaitek Airconditioner Protocol (#2099)
* Add GaitekAC driver header with function declarations * Add GAITEK AC driver implementation Implement GAITEK AC driver with UART protocol handling and commands. * Add GaitekAC driver integration * Enable GAITEKAC driver in obk_config.h * Add GAITEK AC custom UART driver support * Remove ENABLE_DRIVER_GAITEKAC definition * Re-add GAITEK AC custom UART driver source
1 parent 93b85e4 commit da08a17

4 files changed

Lines changed: 543 additions & 0 deletions

File tree

platforms/RTL87X0C/OpenBeken.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ OBK_DIR = ../../../../..
33
CFLAGS += -DPLATFORM_RTL87X0C -DPLATFORM_REALTEK -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=return-mismatch -Wno-error=int-conversion -Wno-error=changes-meaning
44
CFLAGS += -DENABLE_DRIVER_MDNS=1 -DLWIP_MDNS_RESPONDER=1
55

6+
# GAITEK AC custom UART driver
7+
CFLAGS += -DENABLE_DRIVER_GAITEKAC=1
8+
69
# Ensure our lwIP option wrapper is picked before SDK lwipopts.h.
710
INCLUDES := -I$(OBK_DIR)/platforms/RTL87X0C $(INCLUDES)
811

@@ -27,6 +30,10 @@ SRC_C += $(OBK_DIR)/src/hal/realtek/hal_ota_realtek.c
2730
OBK_SRCS = $(OBK_DIR)/src/
2831
include $(OBK_DIR)/platforms/obk_main.mk
2932
SRC_C += $(OBKM_SRC)
33+
34+
# GAITEK AC custom UART driver source
35+
SRC_C += $(OBK_DIR)/src/driver/drv_gaitekAC.c
36+
3037
SRC_CPP += $(OBKM_SRC_CXX)
3138
CFLAGS += $(OBK_CFLAGS) -D__FILE__=\"\" -Wno-builtin-macro-redefined
3239
CPPFLAGS += $(INCLUDES) -fpermissive

0 commit comments

Comments
 (0)