Onekey: migrate some stuff to data driven (#18502)
This commit is contained in:
		
							parent
							
								
									bad8c67189
								
							
						
					
					
						commit
						45b5ed5c6e
					
				
					 69 changed files with 259 additions and 335 deletions
				
			
		| 
						 | 
				
			
			@ -18,14 +18,10 @@
 | 
			
		|||
 | 
			
		||||
#include "config_common.h"
 | 
			
		||||
 | 
			
		||||
#define MATRIX_COL_PINS { B4 }
 | 
			
		||||
#define MATRIX_ROW_PINS { B5 }
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN         C8
 | 
			
		||||
#define BACKLIGHT_PWM_DRIVER  PWMD3
 | 
			
		||||
#define BACKLIGHT_PWM_CHANNEL 3
 | 
			
		||||
#define BACKLIGHT_PAL_MODE    0
 | 
			
		||||
 | 
			
		||||
#define RGB_DI_PIN B15
 | 
			
		||||
 | 
			
		||||
#define ADC_PIN A0
 | 
			
		||||
 | 
			
		||||
#define RGB_CI_PIN B13
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,15 @@
 | 
			
		|||
{
 | 
			
		||||
    "keyboard_name": "Onekey STM32F072 Discovery"
 | 
			
		||||
    "keyboard_name": "Onekey STM32F072 Discovery",
 | 
			
		||||
    "processor": "STM32F072",
 | 
			
		||||
    "bootloader": "stm32-dfu",
 | 
			
		||||
    "matrix_pins": {
 | 
			
		||||
        "cols": ["B4"],
 | 
			
		||||
        "rows": ["B5"]
 | 
			
		||||
    },
 | 
			
		||||
    "backlight": {
 | 
			
		||||
        "pin": "C8"
 | 
			
		||||
    },
 | 
			
		||||
    "rgblight": {
 | 
			
		||||
        "pin": "B15"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,2 @@
 | 
			
		|||
# MCU name
 | 
			
		||||
MCU = STM32F072
 | 
			
		||||
 | 
			
		||||
# Bootloader selection
 | 
			
		||||
BOOTLOADER = stm32-dfu
 | 
			
		||||
 | 
			
		||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
 | 
			
		||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue