summaryrefslogtreecommitdiff
path: root/stmhal/spi.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-03 16:45:46 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-03 17:12:43 +1100
commitd4a5ca505676b207370d172f307b845380dea2da (patch)
tree8ec06fef7e4d2b7abc3b811753ebec7e6de34381 /stmhal/spi.h
parent077dbf4a86bfab65247b7bc856134539ead7452d (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.h2
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);