diff options
| author | Dave Hylands | 2015-08-04 22:50:56 -0700 |
|---|---|---|
| committer | Damien George | 2015-08-05 23:38:49 +0100 |
| commit | 5e11d2b349bffe92c539649799b27c946c2ff17b (patch) | |
| tree | d52d090c3269eb29535bba009d2375f59e0f5b41 /stmhal/boards/STM32F7DISC/mpconfigboard.h | |
| parent | 34fe5a30c6b9ec4ff5d9b10ef9b2e39ec5fd778f (diff) | |
stmhal: Enable SPI support for F7 MCUs.
Diffstat (limited to 'stmhal/boards/STM32F7DISC/mpconfigboard.h')
| -rw-r--r-- | stmhal/boards/STM32F7DISC/mpconfigboard.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/stmhal/boards/STM32F7DISC/mpconfigboard.h b/stmhal/boards/STM32F7DISC/mpconfigboard.h index 6a0d46bf4..62712d85b 100644 --- a/stmhal/boards/STM32F7DISC/mpconfigboard.h +++ b/stmhal/boards/STM32F7DISC/mpconfigboard.h @@ -13,7 +13,7 @@ #define MICROPY_HW_ENABLE_TIMER (1) #define MICROPY_HW_ENABLE_SERVO (0) #define MICROPY_HW_ENABLE_DAC (0) -#define MICROPY_HW_ENABLE_SPI1 (1) +#define MICROPY_HW_ENABLE_SPI1 (0) #define MICROPY_HW_ENABLE_SPI2 (1) #define MICROPY_HW_ENABLE_SPI3 (0) #define MICROPY_HW_ENABLE_CAN (1) @@ -60,6 +60,12 @@ void STM32F7DISC_board_early_init(void); #define MICROPY_HW_I2C_BAUDRATE_DEFAULT 100000 #define MICROPY_HW_I2C_BAUDRATE_MAX 100000 +// SPI +#define MICROPY_HW_SPI2_NSS (pin_I0) +#define MICROPY_HW_SPI2_SCK (pin_I1) +#define MICROPY_HW_SPI2_MISO (pin_B14) +#define MICROPY_HW_SPI2_MOSI (pin_B15) + // USRSW is pulled low. Pressing the button makes the input go high. #define MICROPY_HW_USRSW_PIN (pin_I11) #define MICROPY_HW_USRSW_PULL (GPIO_NOPULL) |
