From 16327ce210fb77674028a24786953d50ecd27ed9 Mon Sep 17 00:00:00 2001 From: modtronix-com Date: Fri, 14 Aug 2015 11:53:45 +1000 Subject: [PATCH] Added place for adding mbed and HAL defines Added place for adding mbed and HAL defines --- .../TARGET_STM32L1/TARGET_NZ32SC151/stm32l1xx.h | 16 +++++++++++++++- .../TARGET_STM32L1/TARGET_NZ32SC151/device.h | 15 +++++---------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/stm32l1xx.h b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/stm32l1xx.h index 0bdc8d8687..2ad3d8fb86 100644 --- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/stm32l1xx.h +++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/stm32l1xx.h @@ -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 */ diff --git a/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/device.h b/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/device.h index aaed5a65c8..412a6913ac 100644 --- a/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/device.h +++ b/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32SC151/device.h @@ -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