Move Bluetooth-related function calls up to host/keyboard level (#18274)
* Move Bluetooth-related function calls up to host/keyboard level * Remove pointless set_output() call * Move bluetooth (rn42) init to end of keyboard_init() * Enable SPI/UART for ChibiOS targets * Some more slight tweaks
This commit is contained in:
		
							parent
							
								
									cf8cdd1992
								
							
						
					
					
						commit
						f7d2b001bc
					
				
					 6 changed files with 61 additions and 64 deletions
				
			
		| 
						 | 
				
			
			@ -882,14 +882,14 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
 | 
			
		|||
    SRC += outputselect.c
 | 
			
		||||
 | 
			
		||||
    ifeq ($(strip $(BLUETOOTH_DRIVER)), BluefruitLE)
 | 
			
		||||
        OPT_DEFS += -DBLUETOOTH_BLUEFRUIT_LE
 | 
			
		||||
        SRC += analog.c
 | 
			
		||||
        OPT_DEFS += -DBLUETOOTH_BLUEFRUIT_LE -DHAL_USE_SPI=TRUE
 | 
			
		||||
        SRC += $(DRIVER_PATH)/bluetooth/bluefruit_le.cpp
 | 
			
		||||
        QUANTUM_LIB_SRC += analog.c
 | 
			
		||||
        QUANTUM_LIB_SRC += spi_master.c
 | 
			
		||||
    endif
 | 
			
		||||
 | 
			
		||||
    ifeq ($(strip $(BLUETOOTH_DRIVER)), RN42)
 | 
			
		||||
        OPT_DEFS += -DBLUETOOTH_RN42
 | 
			
		||||
        OPT_DEFS += -DBLUETOOTH_RN42 -DHAL_USE_SERIAL=TRUE
 | 
			
		||||
        SRC += $(DRIVER_PATH)/bluetooth/rn42.c
 | 
			
		||||
        QUANTUM_LIB_SRC += uart.c
 | 
			
		||||
    endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue