aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/spi.h')
-rw-r--r--libmaple/spi.h20
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.