Los Putacos / Mbed OS WearableDevice_Nucleo_New

Dependencies:   MPU9250_SPI

Fork of WearableDevice_Nucleo by Los Putacos

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers configuration.h Source File

configuration.h

00001 /*
00002 * Los Putacos
00003 * Copyright (C) 2017, All rights reserved.
00004 * ________________________________________
00005 *
00006 * Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez
00007 *       Date: 11-Oct-2017
00008 *    Version: V0.1
00009 */
00010 
00011 //-----------------------------------------------------------------
00012 #ifndef CONFIGURATION_H_
00013 #define CONFIGURATION_H_
00014 
00015 // Microcontroller definition - Comment the Version not used
00016 #define STM32F446RET6 1
00017 
00018 // Debug mode
00019 #define DEBUG_MODE  0
00020 //-----------------------------------------------------------------
00021 
00022 //-----------------------------------------------------------------
00023 // PIN Defines
00024 #ifdef STM32F446RET6
00025     // Wifi SSID & Password
00026     #define WiFi_SSID "OnePlus3"
00027     #define WiFi_Pass "mahandi00"
00028 
00029     // ESP8266 Communication Variables
00030     #define ESP_TX PC_6
00031     #define ESP_RX PC_7
00032         
00033     // IMU Variables
00034     #define IMU_SCK PB_13
00035     #define IMU_MISO PB_14      // SDO - Serial Data Output - MISO
00036     #define IMU_MOSI PB_15      // SDI - Serial Data Input - MOSI
00037     #define IMU_CS PB_1
00038     
00039     // Buzzer PWM Output
00040     PwmOut Buzzer(PB_4);
00041     
00042     // Voltage & Current Sensor
00043     AnalogIn VSense(PA_5);
00044     AnalogIn ISense(PA_6);
00045     
00046     //Analog Input
00047     AnalogIn Micro_1(PC_4);
00048     AnalogIn Micro_2(PC_0);
00049     
00050     //Digital Output
00051     DigitalOut LED_Blue1(PC_10);
00052     DigitalOut LED_Blue2(PC_11);
00053     DigitalOut LED_Red1(PC_12);
00054     DigitalOut LED_Red2(PD_2);
00055 #endif
00056 
00057 #endif // CONFIGURATION_H_
00058 //-----------------------------------------------------------------