diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-04 17:23:54 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-05-04 17:23:54 -0400 |
commit | f35c9f71385ba0629e1e3744d08da2cf442b3e9d (patch) | |
tree | 74d64293a8dc49cfdd5bb8bd28666100519c18f9 /libmaple/spi.h | |
parent | dde41df8c16fd92aa1b267383ae689c678e7758d (diff) | |
download | librambutan-f35c9f71385ba0629e1e3744d08da2cf442b3e9d.tar.gz librambutan-f35c9f71385ba0629e1e3744d08da2cf442b3e9d.zip |
SPI fixups.
Initial post-review changes based on thread here:
https://github.com/leaflabs/libmaple/commit/77f707d7b87fce284945fc9fe21c824c18c4c93d#comments
Diffstat (limited to 'libmaple/spi.h')
-rw-r--r-- | libmaple/spi.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/libmaple/spi.h b/libmaple/spi.h index e2820dd..5c8728f 100644 --- a/libmaple/spi.h +++ b/libmaple/spi.h @@ -222,19 +222,13 @@ extern spi_dev *SPI3; void spi_init(spi_dev *dev); -void spi_master_gpio_cfg(gpio_dev *nss_dev, - gpio_dev *comm_dev, - uint8 nss_bit, - uint8 sck_bit, - uint8 miso_bit, - uint8 mosi_bit); - -void spi_slave_gpio_cfg(gpio_dev *nss_dev, - gpio_dev *comm_dev, - uint8 nss_bit, - uint8 sck_bit, - uint8 miso_bit, - uint8 mosi_bit); +void spi_gpio_cfg(uint8 as_master, + gpio_dev *nss_dev, + uint8 nss_bit, + gpio_dev *comm_dev, + uint8 sck_bit, + uint8 miso_bit, + uint8 mosi_bit); /** * @brief SPI mode configuration. |