diff options
| author | Damien George | 2014-09-30 22:26:59 +0100 |
|---|---|---|
| committer | Damien George | 2014-09-30 22:36:47 +0100 |
| commit | bfa7b480a7a537fc5496c8d9ffbf560f3a02314d (patch) | |
| tree | 2b43899291c8b95c69fac45aed09f6fccbcc511f /stmhal/spi.h | |
| parent | 8b03d944e2ae64f7987116ff342fbd1cc3b97b71 (diff) | |
stmhal: For spi_init, add argument to select if NSS pin is enabled.
Most of the time you don't use the NSS pin of the SPI bus, and so it
shouldn't be enabled by default (this gave some bugs in the past).
Diffstat (limited to 'stmhal/spi.h')
| -rw-r--r-- | stmhal/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/spi.h b/stmhal/spi.h index 1f6e7e7b2..9f8155252 100644 --- a/stmhal/spi.h +++ b/stmhal/spi.h @@ -30,5 +30,5 @@ extern SPI_HandleTypeDef SPIHandle3; extern const mp_obj_type_t pyb_spi_type; void spi_init0(void); -void spi_init(SPI_HandleTypeDef *spi); +void spi_init(SPI_HandleTypeDef *spi, bool enable_nss_pin); SPI_HandleTypeDef *spi_get_handle(mp_obj_t o); |
