Skip to content

Commit

Permalink
fixup! drivers/periph_api: change API of spi_acquire (from RIOT-OS#15904
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hugueslarrive committed Sep 8, 2021
1 parent e494e9b commit 4f39554
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/include/periph/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,13 @@ uint32_t spi_get_freq(spi_clk_t clk);
* @param[in] mode mode to use for the new transaction
* @param[in] clk opaque clock configuration obtain from @ref spi_get_clk
*
* @return The actually used clock frequency in Hz
*
* @pre All parameters are valid and supported, otherwise an assertion blows
* up (if assertions are enabled).
*
* @post Exclusive access to the SPI bus is guaranteed until @ref spi_release
* is called.
*/
uint32_t spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk);
void spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk);

/**
* @brief Finish an ongoing SPI transaction by releasing the given SPI bus
Expand Down

0 comments on commit 4f39554

Please sign in to comment.