Skip to content

Commit 467ff38

Browse files
committed
board: update drivers
1 parent ddcdd12 commit 467ff38

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

main/src/board/cube0414.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ void cube0414_init_board(void)
2828
memset(hspi_trans, 0x00, sizeof(hspi_trans));
2929

3030
gpio_config_t io_conf = {
31-
.mode = GPIO_MODE_OUTPUT,
3231
.pin_bit_mask = BIT64(CONFIG_DEVICE_DC_PIN) | BIT64(CONFIG_DEVICE_RST_PIN),
32+
.mode = GPIO_MODE_OUTPUT,
33+
.pull_up_en = false,
34+
.pull_down_en = false,
35+
.intr_type = GPIO_INTR_DISABLE,
3336
};
3437
gpio_config(&io_conf);
3538

main/src/board/st7735.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ void st7735_init_board(void)
2929
memset(hspi_trans, 0x00, sizeof(hspi_trans));
3030

3131
gpio_config_t io_conf = {
32-
.mode = GPIO_MODE_OUTPUT,
3332
.pin_bit_mask = BIT64(CONFIG_DEVICE_DC_PIN) | BIT64(CONFIG_DEVICE_RST_PIN),
33+
.mode = GPIO_MODE_OUTPUT,
34+
.pull_up_en = false,
35+
.pull_down_en = false,
36+
.intr_type = GPIO_INTR_DISABLE,
3437
};
3538
gpio_config(&io_conf);
3639

main/src/board/st7789.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ void st7789_init_board(void)
2929
memset(hspi_trans, 0x00, sizeof(hspi_trans));
3030

3131
gpio_config_t io_conf = {
32-
.mode = GPIO_MODE_OUTPUT,
3332
.pin_bit_mask = BIT64(CONFIG_DEVICE_DC_PIN) | BIT64(CONFIG_DEVICE_RST_PIN),
33+
.mode = GPIO_MODE_OUTPUT,
34+
.pull_up_en = false,
35+
.pull_down_en = false,
36+
.intr_type = GPIO_INTR_DISABLE,
3437
};
3538
gpio_config(&io_conf);
3639

0 commit comments

Comments
 (0)