Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU9250_SPI
Fork of WearableDevice_Nucleo by
Diff: configuration.h
- Revision:
- 29:ab809198c1ba
- Parent:
- 28:c7e977a19564
diff -r c7e977a19564 -r ab809198c1ba configuration.h
--- a/configuration.h Tue Dec 19 10:15:19 2017 +0000
+++ b/configuration.h Fri Feb 16 18:30:19 2018 +0000
@@ -13,7 +13,6 @@
#define CONFIGURATION_H_
// Microcontroller definition - Comment the Version not used
-// #define STM32F401RET6 1
#define STM32F446RET6 1
// Debug mode
@@ -22,44 +21,37 @@
//-----------------------------------------------------------------
// PIN Defines
-#ifdef STM32F401RET6
- #define RADIO_TX PA_11
- #define RADIO_RX PA_12
- #define RADIO_RESET NC
-
- #define SD_CLK PC_10
- #define SD_MISO PC_11
- #define SD_MOSI PC_12
- #define SD_CS PD_2
-
- //Analog Input
- AnalogIn micro(A0);
- //Digital Input
- DigitalOut led1(LED1);
-#endif
-
#ifdef STM32F446RET6
+ // Wifi SSID & Password
#define WiFi_SSID "OnePlus3"
#define WiFi_Pass "mahandi00"
+ // ESP8266 Communication Variables
#define ESP_TX PC_6
#define ESP_RX PC_7
-
- // #define SD_CLK PC_10
- // #define SD_MISO PC_11
- // #define SD_MOSI PC_12
- // #define SD_CS PD_2
- // #define SD_CD PC_0
+ // IMU Variables
#define IMU_SCK PB_13
#define IMU_MISO PB_14 // SDO - Serial Data Output - MISO
#define IMU_MOSI PB_15 // SDI - Serial Data Input - MOSI
#define IMU_CS PB_1
+ // Buzzer PWM Output
+ PwmOut Buzzer(PB_4);
+
+ // Voltage & Current Sensor
+ AnalogIn VSense(PA_5);
+ AnalogIn ISense(PA_6);
+
//Analog Input
- AnalogIn micro(PC_4);
- //Digital Input
- DigitalOut led1(LED1);
+ AnalogIn Micro_1(PC_4);
+ AnalogIn Micro_2(PC_0);
+
+ //Digital Output
+ DigitalOut LED_Blue1(PC_10);
+ DigitalOut LED_Blue2(PC_11);
+ DigitalOut LED_Red1(PC_12);
+ DigitalOut LED_Red2(PD_2);
#endif
#endif // CONFIGURATION_H_
