Define STM32_DMA_REQUIRED when using DMA-based WS2812 driver on STM32. (#10127)
This commit is contained in:
		
				
					committed by
					
						 James Young
						James Young
					
				
			
			
				
	
			
			
			
						parent
						
							b89b2030af
						
					
				
				
					commit
					1de39e5632
				
			| @@ -304,6 +304,12 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes) | |||||||
|         SRC += ws2812.c |         SRC += ws2812.c | ||||||
|     else |     else | ||||||
|         SRC += ws2812_$(strip $(WS2812_DRIVER)).c |         SRC += ws2812_$(strip $(WS2812_DRIVER)).c | ||||||
|  |  | ||||||
|  |         ifeq ($(strip $(PLATFORM)), CHIBIOS) | ||||||
|  |             ifeq ($(strip $(WS2812_DRIVER)), pwm) | ||||||
|  |                 OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE | ||||||
|  |             endif | ||||||
|  |         endif | ||||||
|     endif |     endif | ||||||
|  |  | ||||||
|     # add extra deps |     # add extra deps | ||||||
|   | |||||||
| @@ -31,6 +31,5 @@ FAUXCLICKY_ENABLE = no      # Use buzzer to emulate clicky switches | |||||||
| SPLIT_KEYBOARD = yes | SPLIT_KEYBOARD = yes | ||||||
| SERIAL_DRIVER = usart | SERIAL_DRIVER = usart | ||||||
| WS2812_DRIVER = pwm | WS2812_DRIVER = pwm | ||||||
| OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE |  | ||||||
|  |  | ||||||
| LAYOUTS = ortho_4x12 | LAYOUTS = ortho_4x12 | ||||||
|   | |||||||
| @@ -22,7 +22,6 @@ FAUXCLICKY_ENABLE = no      # Use buzzer to emulate clicky switches | |||||||
| SPLIT_KEYBOARD = yes | SPLIT_KEYBOARD = yes | ||||||
| SERIAL_DRIVER = usart | SERIAL_DRIVER = usart | ||||||
| WS2812_DRIVER = pwm | WS2812_DRIVER = pwm | ||||||
| OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE |  | ||||||
|  |  | ||||||
| DEFAULT_FOLDER = zvecr/zv48/f401 | DEFAULT_FOLDER = zvecr/zv48/f401 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user