diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-03 16:45:46 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-03 17:12:43 +1100 |
commit | d4a5ca505676b207370d172f307b845380dea2da (patch) | |
tree | 8ec06fef7e4d2b7abc3b811753ebec7e6de34381 /stmhal/spi.h | |
parent | 077dbf4a86bfab65247b7bc856134539ead7452d (diff) |
stmhal/spi: Make machine.SPI class conform to correct API.
Includes both software and hardware SPI implementations.
Diffstat (limited to 'stmhal/spi.h')
-rw-r--r-- | stmhal/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/spi.h b/stmhal/spi.h index bf9eabfca..5686bde64 100644 --- a/stmhal/spi.h +++ b/stmhal/spi.h @@ -31,6 +31,8 @@ extern SPI_HandleTypeDef SPIHandle4; extern SPI_HandleTypeDef SPIHandle5; extern SPI_HandleTypeDef SPIHandle6; extern const mp_obj_type_t pyb_spi_type; +extern const mp_obj_type_t machine_soft_spi_type; +extern const mp_obj_type_t machine_hard_spi_type; void spi_init0(void); void spi_init(SPI_HandleTypeDef *spi, bool enable_nss_pin); |