Skip to content

Commit

Permalink
rename bt driver and fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
1Conan committed Jan 29, 2023
1 parent 22b4b3d commit 2548013
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ ifeq ($(strip $(USBPD_ENABLE)), yes)
endif

BLUETOOTH_ENABLE ?= no
VALID_BLUETOOTH_DRIVER_TYPES := BluefruitLE RN42 ITON_BT custom
VALID_BLUETOOTH_DRIVER_TYPES := BluefruitLE RN42 ItonBT custom
ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
ifeq ($(filter $(strip $(BLUETOOTH_DRIVER)),$(VALID_BLUETOOTH_DRIVER_TYPES)),)
$(call CATASTROPHIC_ERROR,Invalid BLUETOOTH_DRIVER,BLUETOOTH_DRIVER="$(BLUETOOTH_DRIVER)" is not a valid Bluetooth driver type)
Expand All @@ -914,7 +914,7 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
QUANTUM_LIB_SRC += uart.c
endif

ifeq ($(strip $(BLUETOOTH_DRIVER)), ITON_BT)
ifeq ($(strip $(BLUETOOTH_DRIVER)), ItonBT)
OPT_DEFS += -DBLUETOOTH_ITON_BT
SRC += $(DRIVER_PATH)/bluetooth/iton_bt.c
endif
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/keyboard.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"properties": {
"driver": {
"type": "string",
"enum": ["BluefruitLE", "RN42"]
"enum": ["BluefruitLE", "RN42", "ItonBT"]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/bluetooth/iton_bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const SPIConfig iton_bt_spicfg = {
.slave = true,
.data_cb = iton_bt_data_cb,
// mcu specific
.ctrl0 = SPI_CTRL0_DL(8),
.ctrl0 = (8 << 8), // Data Length = 8
};

/**
Expand Down

0 comments on commit 2548013

Please sign in to comment.