Skip to content

Commit

Permalink
fixup! refactor(core): improve flexibility of sd card and touch drive…
Browse files Browse the repository at this point in the history
…r pin selection, display rotation and touch coords transformation
  • Loading branch information
TychoVrahe committed Nov 20, 2023
1 parent 9aeda02 commit 55ed394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/embed/trezorhal/boards/trezor_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define I2C_INSTANCE_1_SCL_CLK_EN __HAL_RCC_GPIOB_CLK_ENABLE
#define I2C_INSTANCE_1_RESET_FLG RCC_APB1RSTR_I2C1RST

#define TOUCH_SENSITIVITY 0x06
#define TOUCH_I2C_NUM 0
#define TOUCH_RST_PORT GPIOC
#define TOUCH_RST_PIN GPIO_PIN_5
Expand Down
2 changes: 1 addition & 1 deletion core/embed/trezorhal/stm32f4/touch/ft6x36.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void touch_init(void) {
__HAL_GPIO_EXTI_CLEAR_FLAG(TOUCH_INT_PIN);

touch_set_mode();
touch_sensitivity(0x06);
touch_sensitivity(TOUCH_SENSITIVITY);
}

void touch_sensitivity(uint8_t value) {
Expand Down

0 comments on commit 55ed394

Please sign in to comment.