Peng Jing Xuan / Mbed OS MQTT_PM25

Dependencies:   mbed-os-example-wifi-DISCO_IOTBOARD_MQTT MQTT

Files at this revision

API Documentation at this revision

Comitter:
adustm
Date:
Tue Feb 27 14:07:49 2018 +0100
Parent:
57:c8c960b825f0
Child:
59:9bbcc1b368ba
Commit message:
Add DISCO_F413ZH (using ism43362 driver)

Changed in this revision

Jenkinsfile Show annotated file Show diff for this revision Revisions of this file
README.md Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Jenkinsfile	Tue Feb 27 10:59:23 2018 +0100
+++ b/Jenkinsfile	Tue Feb 27 14:07:49 2018 +0100
@@ -15,7 +15,8 @@
 def targets = [
   "UBLOX_EVK_ODIN_W2": ["builtin"],
   "NUCLEO_F401RE": ["WIFI_IDW0XX1"],
-  "DISCO_L475VG_IOT01A": ["WIFI_ISM43362"]
+  "DISCO_L475VG_IOT01A": ["WIFI_ISM43362"],
+  "DISCO_F413ZH": ["WIFI_ISM43362"]
   ]
 
 // Map toolchains to compilers
--- a/README.md	Tue Feb 27 10:59:23 2018 +0100
+++ b/README.md	Tue Feb 27 14:07:49 2018 +0100
@@ -15,6 +15,7 @@
 * [NUCLEO-F401RE](https://os.mbed.com/platforms/ST-Nucleo-F401RE/) with [X-NUCLEO-IDW04A1](http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idw04a1.html) Wi-Fi expansion board using pins D8 and D2 _(of the Arduino connector)_.
 * [NUCLEO-F401RE](https://os.mbed.com/platforms/ST-Nucleo-F401RE/) with [X-NUCLEO-IDW01M1](https://os.mbed.com/components/X-NUCLEO-IDW01M1/) Wi-Fi expansion board using pins PA_9 and PA_10 _(of the Morpho connector)_.
 * [DISCO_L475VG_IOT01A](https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/) with ISM43362 built-in module
+* [DISCO_F413ZH](https://os.mbed.com/platforms/ST-Discovery-F413H/) with ISM43362 built-in module
 * Other Mbed targets with  [X-NUCLEO-IDW04A1](http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idw04a1.html) or [X-NUCLEO-IDW01M1](https://os.mbed.com/components/X-NUCLEO-IDW01M1/) expansion board.
   *(The Mbed target board the Wi-Fi shield connects to shouldn't have any other network interface, for example Ethernet.)*
 
@@ -52,7 +53,7 @@
        },
    ```
 
-   Sample ```mbed_app.json``` files are provided for X-NUCLEO-IDW04A1 (```mbed_app_idw04a1.json```),  X-NUCLEO-IDW01M1 (```mbed_app_idw01m1```) and DISCO_L475VG_IOT01A/ISM43362 (```mbed_app_ism43362.json```)
+   Sample ```mbed_app.json``` files are provided for X-NUCLEO-IDW04A1 (```mbed_app_idw04a1.json```),  X-NUCLEO-IDW01M1 (```mbed_app_idw01m1```), DISCO_L475VG_IOT01A/ISM43362 (```mbed_app_ism43362.json```) and DISCO_F413ZH/ISM43362 (```mbed_app_ism43362.json```)
    
    For built-in Wi-Fi, ignore the value of `wifi-shield`.
 
--- a/main.cpp	Tue Feb 27 10:59:23 2018 +0100
+++ b/main.cpp	Tue Feb 27 14:07:49 2018 +0100
@@ -19,7 +19,7 @@
 
 #define WIFI_IDW0XX1    2
 
-#if defined(TARGET_DISCO_L475VG_IOT01A)
+#if (defined(TARGET_DISCO_L475VG_IOT01A) || defined(TARGET_DISCO_F413ZH))
 #include "ISM43362Interface.h"
 ISM43362Interface wifi(MBED_CONF_APP_WIFI_SPI_MOSI, MBED_CONF_APP_WIFI_SPI_MISO, MBED_CONF_APP_WIFI_SPI_SCLK, MBED_CONF_APP_WIFI_SPI_NSS, MBED_CONF_APP_WIFI_RESET, MBED_CONF_APP_WIFI_DATAREADY, MBED_CONF_APP_WIFI_WAKEUP, false);