From 9a581e6af17f58b413d2ee4c0df6bb91cdd8cd9e Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Fri, 5 Jun 2020 14:23:02 +0300 Subject: [PATCH] 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. --- configs/Wisun_Stm_s2lp_RF.json | 13 +++++++++++++ configs/Wisun_Stm_s2lp_RF_cell.json | 13 +++++++++++++ configs/Wisun_Stm_s2lp_RF_lab.json | 13 +++++++++++++ 3 files changed, 39 insertions(+) diff --git a/configs/Wisun_Stm_s2lp_RF.json b/configs/Wisun_Stm_s2lp_RF.json index b6a4cc3..1bc469f 100644 --- a/configs/Wisun_Stm_s2lp_RF.json +++ b/configs/Wisun_Stm_s2lp_RF.json @@ -84,6 +84,19 @@ "kinetis-emac.tx-ring-len":4, "kinetis-emac.rx-ring-len":4 }, + "MTB_STM_S2LP": { + "s2lp.SPI_SDI" : "PA_7", + "s2lp.SPI_SDO" : "PA_6", + "s2lp.SPI_SCLK" : "PA_5", + "s2lp.SPI_CS" : "PC_0", + "s2lp.SPI_SDN" : "PF_13", + "s2lp.SPI_GPIO0": "PA_3", + "s2lp.SPI_GPIO1": "PC_3", + "s2lp.SPI_GPIO2": "PF_3", + "s2lp.SPI_GPIO3": "PF_10", + "s2lp.I2C_SDA" : "PB_7", + "s2lp.I2C_SCL" : "PB_6" + }, "K64F_STATIC_BR": { "kinetis-emac.tx-ring-len":4, "kinetis-emac.rx-ring-len":4, diff --git a/configs/Wisun_Stm_s2lp_RF_cell.json b/configs/Wisun_Stm_s2lp_RF_cell.json index 0a56843..c4815b4 100644 --- a/configs/Wisun_Stm_s2lp_RF_cell.json +++ b/configs/Wisun_Stm_s2lp_RF_cell.json @@ -95,6 +95,19 @@ "K66F": { "kinetis-emac.tx-ring-len":4, "kinetis-emac.rx-ring-len":4 + }, + "MTB_STM_S2LP": { + "s2lp.SPI_SDI" : "PA_7", + "s2lp.SPI_SDO" : "PA_6", + "s2lp.SPI_SCLK" : "PA_5", + "s2lp.SPI_CS" : "PC_0", + "s2lp.SPI_SDN" : "PF_13", + "s2lp.SPI_GPIO0": "PA_3", + "s2lp.SPI_GPIO1": "PC_3", + "s2lp.SPI_GPIO2": "PF_3", + "s2lp.SPI_GPIO3": "PF_10", + "s2lp.I2C_SDA" : "PB_7", + "s2lp.I2C_SCL" : "PB_6" } } } diff --git a/configs/Wisun_Stm_s2lp_RF_lab.json b/configs/Wisun_Stm_s2lp_RF_lab.json index 33ff205..db7d861 100644 --- a/configs/Wisun_Stm_s2lp_RF_lab.json +++ b/configs/Wisun_Stm_s2lp_RF_lab.json @@ -83,6 +83,19 @@ "K66F": { "kinetis-emac.tx-ring-len":4, "kinetis-emac.rx-ring-len":4 + }, + "MTB_STM_S2LP": { + "s2lp.SPI_SDI" : "PA_7", + "s2lp.SPI_SDO" : "PA_6", + "s2lp.SPI_SCLK" : "PA_5", + "s2lp.SPI_CS" : "PC_0", + "s2lp.SPI_SDN" : "PF_13", + "s2lp.SPI_GPIO0": "PA_3", + "s2lp.SPI_GPIO1": "PC_3", + "s2lp.SPI_GPIO2": "PF_3", + "s2lp.SPI_GPIO3": "PF_10", + "s2lp.I2C_SDA" : "PB_7", + "s2lp.I2C_SCL" : "PB_6" } } }