Skip to content

Commit 9a581e6

Browse files
author
Arto Kinnunen
committed
Add S2LP driver pin config to application
New S2LP driver does not provide PIN configuration for MTB_STM_S2LP board. Define pins in the application configuration files.
1 parent 6a93f29 commit 9a581e6

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

configs/Wisun_Stm_s2lp_RF.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@
8484
"kinetis-emac.tx-ring-len":4,
8585
"kinetis-emac.rx-ring-len":4
8686
},
87+
"MTB_STM_S2LP": {
88+
"s2lp.SPI_SDI" : "PA_7",
89+
"s2lp.SPI_SDO" : "PA_6",
90+
"s2lp.SPI_SCLK" : "PA_5",
91+
"s2lp.SPI_CS" : "PC_0",
92+
"s2lp.SPI_SDN" : "PF_13",
93+
"s2lp.SPI_GPIO0": "PA_3",
94+
"s2lp.SPI_GPIO1": "PC_3",
95+
"s2lp.SPI_GPIO2": "PF_3",
96+
"s2lp.SPI_GPIO3": "PF_10",
97+
"s2lp.I2C_SDA" : "PB_7",
98+
"s2lp.I2C_SCL" : "PB_6"
99+
},
87100
"K64F_STATIC_BR": {
88101
"kinetis-emac.tx-ring-len":4,
89102
"kinetis-emac.rx-ring-len":4,

configs/Wisun_Stm_s2lp_RF_cell.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@
9595
"K66F": {
9696
"kinetis-emac.tx-ring-len":4,
9797
"kinetis-emac.rx-ring-len":4
98+
},
99+
"MTB_STM_S2LP": {
100+
"s2lp.SPI_SDI" : "PA_7",
101+
"s2lp.SPI_SDO" : "PA_6",
102+
"s2lp.SPI_SCLK" : "PA_5",
103+
"s2lp.SPI_CS" : "PC_0",
104+
"s2lp.SPI_SDN" : "PF_13",
105+
"s2lp.SPI_GPIO0": "PA_3",
106+
"s2lp.SPI_GPIO1": "PC_3",
107+
"s2lp.SPI_GPIO2": "PF_3",
108+
"s2lp.SPI_GPIO3": "PF_10",
109+
"s2lp.I2C_SDA" : "PB_7",
110+
"s2lp.I2C_SCL" : "PB_6"
98111
}
99112
}
100113
}

configs/Wisun_Stm_s2lp_RF_lab.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@
8383
"K66F": {
8484
"kinetis-emac.tx-ring-len":4,
8585
"kinetis-emac.rx-ring-len":4
86+
},
87+
"MTB_STM_S2LP": {
88+
"s2lp.SPI_SDI" : "PA_7",
89+
"s2lp.SPI_SDO" : "PA_6",
90+
"s2lp.SPI_SCLK" : "PA_5",
91+
"s2lp.SPI_CS" : "PC_0",
92+
"s2lp.SPI_SDN" : "PF_13",
93+
"s2lp.SPI_GPIO0": "PA_3",
94+
"s2lp.SPI_GPIO1": "PC_3",
95+
"s2lp.SPI_GPIO2": "PF_3",
96+
"s2lp.SPI_GPIO3": "PF_10",
97+
"s2lp.I2C_SDA" : "PB_7",
98+
"s2lp.I2C_SCL" : "PB_6"
8699
}
87100
}
88101
}

0 commit comments

Comments
 (0)