Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
gfurtadoalmeida committed Sep 4, 2023
1 parent f6010e9 commit eb3c97d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void app_main(void)
.data6_io_num = -1,
.data7_io_num = -1,
.max_transfer_sz = 3, // 24 bits.
.flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_IOMUX_PINS,
.flags = SPICOMMON_BUSFLAG_MASTER,
.isr_cpu_id = INTR_CPU_ID_AUTO,
.intr_flags = ESP_INTR_FLAG_LEVEL3};

Expand Down
10 changes: 8 additions & 2 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ void app_main(void)
.sclk_io_num = GPIO_NUM_18,
.quadwp_io_num = -1,
.quadhd_io_num = -1,
.max_transfer_sz = 0,
.flags = SPICOMMON_BUSFLAG_MASTER};
.data4_io_num = -1,
.data5_io_num = -1,
.data6_io_num = -1,
.data7_io_num = -1,
.max_transfer_sz = 3, // 24 bits.
.flags = SPICOMMON_BUSFLAG_MASTER,
.isr_cpu_id = INTR_CPU_ID_AUTO,
.intr_flags = ESP_INTR_FLAG_LEVEL3};

mcp320x_config_t mcp320x_cfg = {
.host = SPI3_HOST,
Expand Down

0 comments on commit eb3c97d

Please sign in to comment.