git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6852 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2014-04-21 08:20:14 +00:00
parent 610bc93341
commit d855e1cf6c
2 changed files with 16 additions and 9 deletions

View File

@ -30,7 +30,7 @@
/* Driver local definitions. */
/*===========================================================================*/
#if defined(STM32L1XX_MD)
#if defined(STM32L1XX_MD) || defined(STM32L1XX_MDP) || defined(STM32L1XX_HD)
#define AHB_EN_MASK (RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | \
RCC_AHBENR_GPIOCEN | RCC_AHBENR_GPIODEN | \
RCC_AHBENR_GPIOEEN | RCC_AHBENR_GPIOHEN)

View File

@ -26,7 +26,7 @@
* One of the following macros must also be defined:
* - STM32L1XX_MD for Ultra Low Power Medium-density devices.
* - STM32L1XX_MDP for Ultra Low Power Medium-density Plus devices.
* - STM32L1XX_HD for Ultra Low Power Medium-density devices.
* - STM32L1XX_HD for Ultra Low Power High-density devices.
* .
*
* @addtogroup HAL
@ -46,7 +46,21 @@
* @name Platform identification
* @{
*/
#if defined(STM32L1XX_MD) || defined(__DOXYGEN__)
#define PLATFORM_NAME "STM32L1xx Ultra Low Power Medium Density"
#define STM32L1XX
#elif defined(STM32L1XX_MDP)
#define PLATFORM_NAME "STM32L1xx Ultra Low Power Medium Density Plus"
#define STM32L1XX
#elif defined(STM32L1XX_HD)
#define PLATFORM_NAME "STM32L1xx Ultra Low Power High Density"
#define STM32L1XX
#else
#error "STM32L1xx device not specified"
#endif
/** @} */
/**
@ -356,13 +370,6 @@
#error "Using a wrong mcuconf.h file, STM32L1xx_MCUCONF not defined"
#endif
/*
* MCU variant check.
*/
#if defined(STM32L1XX_MDP) || defined(STM32L1XX_HD)
#error "unsupported STM32L1XX variant"
#endif
/* Voltage related limits.*/
#if (STM32_VOS == STM32_VOS_1P8) || defined(__DOXYGEN__)
/**