config.h (2164B)
1 /* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <https://github.com/Legonut> wrote this file. As long as you retain this 5 * notice you can do whatever you want with this stuff. If we meet some day, and 6 * you think this stuff is worth it, you can buy me a beer in return. David Rauseo 7 * ---------------------------------------------------------------------------- 8 */ 9 10 #pragma once 11 12 #define BUSY_WAIT 13 #define BUSY_WAIT_INSTRUCTIONS 35 // Increase if two rows are pressed at the same time. 14 #define GPIO_INPUT_PIN_DELAY 10 15 16 /* Touchbar adjustments */ 17 #define TOUCH_DEADZONE 50 // width of a "button", wider inputs will be interpreted as a swipe 18 #define TOUCH_TERM 350 // time of a "button" touch, longer inputs will be a swipe 19 #define TOUCH_RESOLUTION 25 // sensitivity of swipes, lower=faster 20 #define TOUCH_SEGMENTS 3 21 22 /* CRC Configuration */ 23 #define CRC8_OPTIMIZE_SPEED 24 #define CRC8_USE_TABLE 25 26 /* Split Keyboard Configuration */ 27 #define EE_HANDS 28 #define SPLIT_USB_DETECT 29 #define SERIAL_USART_TX_PAL_MODE 7 30 #define SERIAL_USART_TIMEOUT 5 31 #define SERIAL_USART_DRIVER SD1 32 //#define SERIAL_USART_FULL_DUPLEX - Waiting on reunification pr 33 #if SERIAL_USART_FULL_DUPLEX 34 #define SERIAL_USART_RX_PIN A10 35 #define SERIAL_USART_RX_PAL_MODE 7 36 // Mun connects TX to TX and RX to RX as we were planning on i2c split, so we need pin swap for full duplex 37 #define SERIAL_USART_PIN_SWAP 38 #define SERIAL_USART_SPEED (2 * 1024 * 1024) 39 #else 40 #define SERIAL_USART_SPEED (1 * 1024 * 1024) 41 #endif 42 43 /* Split Transport Features */ 44 #define SPLIT_TRANSACTION_IDS_KB TOUCH_ENCODER_SYNC, RGB_MENU_SYNC 45 46 #if RGB_UNLIMITED_POWER 47 #define RGBLIGHT_LIMIT_VAL 255 48 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 49 #else 50 #define RGBLIGHT_LIMIT_VAL 127 51 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 127 52 #endif 53 54 #define WS2812_PWM_DRIVER PWMD3 55 #define WS2812_PWM_CHANNEL 2 56 #define WS2812_PWM_PAL_MODE 2 57 #define WS2812_PWM_DMA_STREAM STM32_DMA1_STREAM3 58 #define WS2812_PWM_DMA_CHANNEL 3 59 60 #define TOUCH_UPDATE_INTERVAL 33 61 #define OLED_UPDATE_INTERVAL 33 62 #define OLED_FONT_H "keyboards/rgbkb/common/glcdfont.c"