From 1884070ea90982fd287b58b6d8d9b4bc85d3d8eb Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Wed, 30 May 2018 17:49:54 +0200 Subject: [PATCH 1/2] Add ISM43362 driver support for STM32 wifi DISCO boards 2 DISCO boards: - DISCO_F413ZH - DISCO_L475VG_IOT01A 3 tests supported: - tests-netsocket-tcp - tests-netsocket-udp - tests-network-wifi --- tools/test_configs/ISM43362Interface.json | 90 +++++++++++++++++++++++ tools/test_configs/config_paths.json | 1 + tools/test_configs/target_configs.json | 8 ++ 3 files changed, 99 insertions(+) create mode 100644 tools/test_configs/ISM43362Interface.json diff --git a/tools/test_configs/ISM43362Interface.json b/tools/test_configs/ISM43362Interface.json new file mode 100644 index 0000000000..38b932dcde --- /dev/null +++ b/tools/test_configs/ISM43362Interface.json @@ -0,0 +1,90 @@ +{ + "config": { + "header-file": { + "help" : "String for including your driver header file", + "value" : "\"ISM43362Interface.h\"" + }, + "object-construction" : { + "value" : "new ISM43362Interface()" + }, + "connect-statement" : { + "help" : "Must use 'net' variable name", + "value" : "net->wifiInterface()->connect(MBED_CONF_APP_WIFI_SECURE_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA_WPA2)" + }, + "echo-server-addr" : { + "help" : "IP address of echo server", + "value" : "\"echo.mbedcloudtesting.com\"" + }, + "echo-server-port" : { + "help" : "Port of echo server", + "value" : "7" + }, + "tcp-echo-prefix" : { + "help" : "Some servers send a prefix before echoed message", + "value" : null + }, + "tcp-client-echo-buffer-size" : { + "help" : "Number of bytes to be send to echo server", + "value" : "200" + }, + "wifi-secure-ssid": { + "help": "WiFi SSID for WPA2 secured network", + "value": "\"SSID-SECURE\"" + }, + "wifi-unsecure-ssid": { + "help": "WiFi SSID for unsecure network", + "value": "\"SSID-UNSECURE\"" + }, + "wifi-password": { + "help": "WiFi Password", + "value": "\"PASSWORD\"" + }, + "wifi-secure-protocol": { + "help": "WiFi security protocol, valid values are WEP, WPA, WPA2, WPA/WPA2", + "value": "\"WPA2\"" + }, + "wifi-ch-secure": { + "help": "Channel number of secure SSID", + "value": 1 + }, + "wifi-ch-unsecure": { + "help": "Channel number of unsecure SSID", + "value": 2 + }, + "ap-mac-secure": { + "help": "BSSID of secure AP in form of AA:BB:CC:DD:EE:FF", + "value": "\"AA:AA:AA:AA:AA:AA\"" + }, + "ap-mac-unsecure": { + "help": "BSSID of unsecure AP in form of \"AA:BB:CC:DD:EE:FF\"", + "value": "\"BB:BB:BB:BB:BB:BB\"" + }, + "max-scan-size": { + "help": "How many networks may appear in Wifi scan result", + "value": 10 + } + }, + "target_overrides": { + "*": { + "platform.stdio-convert-newlines": true + }, + "DISCO_F413ZH": { + "ism43362.wifi-miso": "PB_4", + "ism43362.wifi-mosi": "PB_5", + "ism43362.wifi-sclk": "PB_12", + "ism43362.wifi-nss": "PG_11", + "ism43362.wifi-reset": "PH_1", + "ism43362.wifi-dataready": "PG_12", + "ism43362.wifi-wakeup": "PB_15" + }, + "DISCO_L475VG_IOT01A": { + "ism43362.wifi-miso": "PC_11", + "ism43362.wifi-mosi": "PC_12", + "ism43362.wifi-sclk": "PC_10", + "ism43362.wifi-nss": "PE_0", + "ism43362.wifi-reset": "PE_8", + "ism43362.wifi-dataready": "PE_1", + "ism43362.wifi-wakeup": "PB_13" + } + } +} diff --git a/tools/test_configs/config_paths.json b/tools/test_configs/config_paths.json index 947fa8f220..a8cf4250ce 100644 --- a/tools/test_configs/config_paths.json +++ b/tools/test_configs/config_paths.json @@ -7,5 +7,6 @@ "REALTEK_WIFI" : "RealtekInterface.json", "ESP8266_WIFI" : "ESP8266Interface.json", "WICED_WIFI" : "WicedInterface.json", + "ISM43362_WIFI" : "ISM43362Interface.json", "IDW0XX1_WIFI" : "SpwfSAInterface.json" } diff --git a/tools/test_configs/target_configs.json b/tools/test_configs/target_configs.json index 2aab1f28c8..5deaacb7b6 100644 --- a/tools/test_configs/target_configs.json +++ b/tools/test_configs/target_configs.json @@ -15,6 +15,14 @@ "default_test_configuration": "HEAPBLOCKDEVICE_AND_ETHERNET", "test_configurations": ["HEAPBLOCKDEVICE_AND_ETHERNET"] }, + "DISCO_L475VG_IOT01A": { + "default_test_configuration": "NONE", + "test_configurations": ["ISM43362_WIFI"] + }, + "DISCO_F413ZH": { + "default_test_configuration": "NONE", + "test_configurations": ["ISM43362_WIFI"] + }, "MTB_UBLOX_ODIN_W2": { "default_test_configuration": "NONE", "test_configurations": ["ODIN_WIFI"] From 0c6844d9c3f50a730fbe1dac651d86010f2e9497 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Tue, 5 Jun 2018 12:01:52 +0200 Subject: [PATCH 2/2] ISM pin configuration is now in ISM driver json file --- tools/test_configs/ISM43362Interface.json | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tools/test_configs/ISM43362Interface.json b/tools/test_configs/ISM43362Interface.json index 38b932dcde..170bf91df1 100644 --- a/tools/test_configs/ISM43362Interface.json +++ b/tools/test_configs/ISM43362Interface.json @@ -67,24 +67,6 @@ "target_overrides": { "*": { "platform.stdio-convert-newlines": true - }, - "DISCO_F413ZH": { - "ism43362.wifi-miso": "PB_4", - "ism43362.wifi-mosi": "PB_5", - "ism43362.wifi-sclk": "PB_12", - "ism43362.wifi-nss": "PG_11", - "ism43362.wifi-reset": "PH_1", - "ism43362.wifi-dataready": "PG_12", - "ism43362.wifi-wakeup": "PB_15" - }, - "DISCO_L475VG_IOT01A": { - "ism43362.wifi-miso": "PC_11", - "ism43362.wifi-mosi": "PC_12", - "ism43362.wifi-sclk": "PC_10", - "ism43362.wifi-nss": "PE_0", - "ism43362.wifi-reset": "PE_8", - "ism43362.wifi-dataready": "PE_1", - "ism43362.wifi-wakeup": "PB_13" } } }