Skip to content

Commit

Permalink
fixup! cpu/gdv32: add SPI support
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jan 31, 2023
1 parent fd16d75 commit a48e2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/gd32v/periph/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk)
mutex_lock(&locks[bus]);

/* block DEEP_SLEEP mode */
pm_block(GD32V_PM_DEEP_SLEEP);
pm_block(GD32V_PM_DEEPSLEEP);

/* enable SPI device clock */
periph_clk_en(spi_config[bus].apbbus, spi_config[bus].rcumask);
Expand Down Expand Up @@ -220,7 +220,7 @@ void spi_release(spi_t bus)
periph_clk_dis(spi_config[bus].apbbus, spi_config[bus].rcumask);

/* unblock DEEP_SLEEP mode */
pm_unblock(GD32V_PM_DEEP_SLEEP);
pm_unblock(GD32V_PM_DEEPSLEEP);

mutex_unlock(&locks[bus]);
}
Expand Down

0 comments on commit a48e2cb

Please sign in to comment.