Skip to content

Commit

Permalink
[TractylM] Remove USB HS code in favor of it being at keyboard level
Browse files Browse the repository at this point in the history
  • Loading branch information
drashna committed Mar 3, 2025
1 parent 78192ff commit e6ab9ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@
#define SPLIT_WATCHDOG_TIMEOUT 700
#define AUDIO_INIT_DELAY

#ifdef USE_USB_OTG_HS_PORT
# define USB_DRIVER USBD2
#endif

#if defined(KEYBOARD_handwired_tractyl_manuform_5x6_right_f407)
# define ST7789_CS_PIN A8
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// USB Port Pin Definitions
// black - GND
// red - VCC
// white - D- - A11
// blue - D+ - A12
// white - D- - A11 - B14
// blue - D+ - A12 - B15
// green - CC1
// yellow - CC2

Expand Down Expand Up @@ -103,18 +103,6 @@ void keyboard_post_init_keymap(void) {
}
#endif // QUANTUM_PAINTER_ENABLE && !CUSTOM_QUANTUM_PAINTER_ENABLE

#ifdef USE_USB_OTG_HS_PORT
# pragma message("Using USB OTG HS Port")
void early_hardware_init_post(void) {
// D- white
palSetLineMode(
B14, PAL_MODE_ALTERNATE(12) | PAL_STM32_OTYPE_PUSHPULL | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING);
// D+ blue
palSetLineMode(
B15, PAL_MODE_ALTERNATE(12) | PAL_STM32_OTYPE_PUSHPULL | PAL_STM32_OSPEED_HIGHEST | PAL_STM32_PUPDR_FLOATING);
}
#endif

void execute_user_button_action(bool state) {
// for the double tap action of the reset pin
static bool last_state = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,3 @@
# undef STM32_I2C_BUSY_TIMEOUT
# define STM32_I2C_BUSY_TIMEOUT 10
#endif

#ifdef USE_USB_OTG_HS_PORT
# undef STM32_USB_USE_OTG1
# define STM32_USB_USE_OTG1 FALSE
# undef STM32_USB_USE_OTG2
# define STM32_USB_USE_OTG2 TRUE
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ifeq ($(strip $(KEYBOARD)), handwired/tractyl_manuform/5x6_right/f405)
CUSTOM_QUANTUM_PAINTER_ST7789_170X320 = no
CUSTOM_QUANTUM_PAINTER_ST7789_135X240 = no
WEAR_LEVELING_DRIVER = spi_flash
USE_USB_OTG_HS_PORT = yes
endif
ifeq ($(strip $(KEYBOARD)), handwired/tractyl_manuform/5x6_right/f407)
OVERLOAD_FEATURES = yes
Expand Down

0 comments on commit e6ab9ea

Please sign in to comment.