Added place for adding mbed and HAL defines

Added place for adding mbed and HAL defines
pull/1277/head
modtronix-com 2015-08-14 11:53:45 +10:00
parent ccecacc129
commit 16327ce210
2 changed files with 20 additions and 11 deletions

View File

@ -64,7 +64,21 @@
* @{
*/
/* Uncomment the line below according to the target STM32L device used in your
//MODTRONIX BEGIN - HAL Defines ///////////////////////////////////////////////
//Provide place for adding HAL defines. Alternative to adding them in IDE project properties.
//Add project defines here, or add them to your toolchain compiler preprocessor
//Defines what ports to use for default serial port.
//0 = B10/B11
//1 = A2/A3
#if !defined (MX_DEFAULT_SERIAL_PINS)
#define MX_DEFAULT_SERIAL_PINS 0 // Use B10/B11 for default serial port, in stead of A2/A3
#endif
//MODTRONIX END ///////////////////////////////////////////////////////////////
/* Uncomment the line below according to the target STM32L device used in your
application
*/

View File

@ -31,18 +31,13 @@
#define MBED_DEVICE_H
//MODTRONIX BEGIN
//Provide place for adding global define. Alternative to adding them in IDE project
//properties. Add project defines here, or add them to your toolchain compiler preprocessor
//MODTRONIX BEGIN - mbed Defines //////////////////////////////////////////////
//Provide place for adding mbed defines. Alternative to adding them in IDE project properties.
//Add project defines here, or add them to your toolchain compiler preprocessor
//Defines what ports to use for default serial port.
//0 = B10/B11
//1 = A2/A3
#if !defined (MX_DEFAULT_SERIAL_PINS)
#define MX_DEFAULT_SERIAL_PINS 0 // Use B10/B11 for default serial port, in stead of A2/A3
#endif
//MODTRONIX END
//MODTRONIX END ///////////////////////////////////////////////////////////////
#define DEVICE_PORTIN 1
#define DEVICE_PORTOUT 1