summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/boards/make-pins.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-12 15:02:02 +0000
committerDamien George <damien.p.george@gmail.com>2015-12-12 15:02:02 +0000
commitf7c4f9a64048bcbeaf36be8590b352bbef72aa08 (patch)
tree2694d59a1aba9b69f04cff32bc76a40243194751 /stmhal/boards/make-pins.py
parent29e9db0c587145a8823227635734924896cdc4d1 (diff)
downloadmicropython-f7c4f9a64048bcbeaf36be8590b352bbef72aa08.tar.gz
micropython-f7c4f9a64048bcbeaf36be8590b352bbef72aa08.zip
stmhal: For SPI config, use HW_SPIx_SCK instead of HW_ENABLE_SPIx.
Previously, SPI was configured by a board defining MICROPY_HW_ENABLE_SPIx to 0 or 1. Now, the board should define MICROPY_HW_SPIx_SCK, MISO, MOSI and NSS. This makes it the same as how I2C is configured.
Diffstat (limited to 'stmhal/boards/make-pins.py')
-rwxr-xr-xstmhal/boards/make-pins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/boards/make-pins.py b/stmhal/boards/make-pins.py
index 822a093406..b7f4842144 100755
--- a/stmhal/boards/make-pins.py
+++ b/stmhal/boards/make-pins.py
@@ -20,7 +20,7 @@ SUPPORTED_FN = {
CONDITIONAL_VAR = {
'I2C' : 'MICROPY_HW_I2C{num}_SCL',
'I2S' : 'MICROPY_HW_ENABLE_I2S{num}',
- 'SPI' : 'MICROPY_HW_ENABLE_SPI{num}',
+ 'SPI' : 'MICROPY_HW_SPI{num}_SCK',
'UART' : 'MICROPY_HW_UART{num}_PORT',
'UART5' : 'MICROPY_HW_UART5_TX_PORT',
'USART' : 'MICROPY_HW_UART{num}_PORT',