This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 869c322 missing syscfg for SPI2/SPI3 for stm32
869c322 is described below
commit 869c322312ed4a1f12dc808a074c031c09244bcb
Author: J. Ipanienko <[email protected]>
AuthorDate: Thu May 28 11:58:58 2020 -0700
missing syscfg for SPI2/SPI3 for stm32
Code in stm32_periph,c use MYNEWT_VAL(SPI_2_MASTER) that are not define in
yml file
---
hw/mcu/stm/stm32_common/syscfg.yml | 58 ++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/hw/mcu/stm/stm32_common/syscfg.yml
b/hw/mcu/stm/stm32_common/syscfg.yml
index 5da1d28..3d93adb 100644
--- a/hw/mcu/stm/stm32_common/syscfg.yml
+++ b/hw/mcu/stm/stm32_common/syscfg.yml
@@ -141,6 +141,64 @@ syscfg.defs:
description: 'SS pin for SPI_1'
value: ''
+ SPI_2_MASTER:
+ description: 'SPI 2 master'
+ value: 0
+ restrictions:
+ - "!SPI_2_SLAVE"
+ SPI_2_SLAVE:
+ description: 'SPI 2 slave'
+ value: 0
+ restrictions:
+ - "!SPI_2_MASTER"
+ SPI_2:
+ description: 'SPI 2 enabled'
+ value: 'MYNEWT_VAL_SPI_2_MASTER || MYNEWT_VAL_SPI_2_SLAVE'
+ SPI_2_CUSTOM_CFG:
+ description: 'Allow SPI_2 configuration override'
+ value: 0
+ SPI_2_PIN_SCK:
+ description: 'SCK pin for SPI_2'
+ value: ''
+ SPI_2_PIN_MOSI:
+ description: 'MOSI pin for SPI_2'
+ value: ''
+ SPI_2_PIN_MISO:
+ description: 'MISO pin for SPI_2'
+ value: ''
+ SPI_2_PIN_SS:
+ description: 'SS pin for SPI_2'
+ value: ''
+
+ SPI_3_MASTER:
+ description: 'SPI 2 master'
+ value: 0
+ restrictions:
+ - "!SPI_3_SLAVE"
+ SPI_3_SLAVE:
+ description: 'SPI 2 slave'
+ value: 0
+ restrictions:
+ - "!SPI_3_MASTER"
+ SPI_3:
+ description: 'SPI 2 enabled'
+ value: 'MYNEWT_VAL_SPI_3_MASTER || MYNEWT_VAL_SPI_3_SLAVE'
+ SPI_3_CUSTOM_CFG:
+ description: 'Allow SPI_3 configuration override'
+ value: 0
+ SPI_3_PIN_SCK:
+ description: 'SCK pin for SPI_3'
+ value: ''
+ SPI_3_PIN_MOSI:
+ description: 'MOSI pin for SPI_3'
+ value: ''
+ SPI_3_PIN_MISO:
+ description: 'MISO pin for SPI_3'
+ value: ''
+ SPI_3_PIN_SS:
+ description: 'SS pin for SPI_3'
+ value: ''
+
I2C_0:
description: 'I2C (TWI) interface 0'
value: 0