Los Putacos / Mbed OS WearableDevice_Nucleo_New

Dependencies:   MPU9250_SPI

Fork of WearableDevice_Nucleo by Los Putacos

configuration.h

Committer:
Muglug
Date:
2017-12-19
Revision:
28:c7e977a19564
Parent:
26:4bc56ce08d15
Child:
29:ab809198c1ba

File content as of revision 28:c7e977a19564:

/*
* Los Putacos
* Copyright (C) 2017, All rights reserved.
* ________________________________________
*
* Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez
*       Date: 11-Oct-2017
*    Version: V0.1
*/

//-----------------------------------------------------------------
#ifndef CONFIGURATION_H_
#define CONFIGURATION_H_

// Microcontroller definition - Comment the Version not used
// #define STM32F401RET6 1
#define STM32F446RET6 1

// Debug mode
#define DEBUG_MODE  0
//-----------------------------------------------------------------

//-----------------------------------------------------------------
// 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
    #define WiFi_SSID "OnePlus3"
    #define WiFi_Pass "mahandi00"

    #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
        
    #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
    
    //Analog Input
    AnalogIn micro(PC_4);
    //Digital Input
    DigitalOut led1(LED1);
#endif

#endif // CONFIGURATION_H_
//-----------------------------------------------------------------