This commit is contained in:
Gregory Nutt 2014-11-27 06:12:35 -06:00
parent 4f22093bfa
commit 0ad88d9664
3 changed files with 56 additions and 0 deletions

View File

@ -534,6 +534,43 @@
# define STM32_NRNG 0 /* No random number generator (RNG) */
# define STM32_NDCMI 0 /* No digital camera interface (DCMI) */
/* STM32 F102x8/102xB Medium Density USB Access Family ***************************/
#elif defined(CONFIG_ARCH_CHIP_STM32F102CB)
# undef CONFIG_STM32_STM32L15XX /* STM32L151xx and STM32L152xx family */
# undef CONFIG_STM32_ENERGYLITE /* STM32L EnergyLite vamily */
# define CONFIG_STM32_STM32F10XX 1 /* STM32F10xx family */
# undef CONFIG_STM32_LOWDENSITY /* STM32F100x, STM32F101x, STM32F102x and STM32F103x w/ 16/32 Kbytes */
# define CONFIG_STM32_MEDIUMDENSITY 1 /* STM32F100x, STM32F101x, STM32F102x and STM32F103x w/ 64/128 Kbytes */
# undef CONFIG_STM32_HIGHDENSITY /* STM32F100x, STM32F101x, and STM32F103x w/ 256/512 Kbytes */
# undef CONFIG_STM32_VALUELINE /* STM32F100x */
# define CONFIG_STM32_USBACCESSLINE 1 /* STM32F102xx */
# undef CONFIG_STM32_CONNECTIVITYLINE /* STM32F105x and STM32F107x */
# undef CONFIG_STM32_STM32F20XX /* STM32F205x and STM32F207x */
# undef CONFIG_STM32_STM32F30XX /* STM32F30xxx family */
# undef CONFIG_STM32_STM32F40XX /* STM32F405xx and STM32407xx families */
# define STM32_NFSMC 1 /* FSMC */
# define STM32_NATIM 0 /* No advanced timer TIM1 */
# define STM32_NGTIM 3 /* 16-bit general timers TIM2,3,4 */
# define STM32_NBTIM 0 /* No basic timers */
# define STM32_NDMA 1 /* DMA */
# define STM32_NSPI 2 /* SPI1-2 */
# define STM32_NI2S 0 /* No I2S */
# define STM32_NUSART 3 /* USART1-3 */
# define STM32_NI2C 2 /* I2C1-2 */
# define STM32_NCAN 0 /* No CAN */
# define STM32_NSDIO 0 /* No SDIO */
# define STM32_NLCD 0 /* No LCD */
# define STM32_NUSBOTG 0 /* No USB OTG FS/HS */
# define STM32_NGPIO 37 /* GPIOA-D */
# define STM32_NADC 1 /* ADC1 */
# define STM32_NDAC 0 /* No DAC */
# define STM32_NCAPSENSE 0 /* No capacitive sensing channels */
# define STM32_NCRC 1 /* CRC1 */
# define STM32_NETHERNET 0 /* No ethernet */
# define STM32_NRNG 0 /* No random number generator (RNG) */
# define STM32_NDCMI 0 /* No digital camera interface (DCMI) */
/* STM32 F103 Low Density Family *************************************************/
/* STM32F103C4 & STM32F103C6 */

View File

@ -251,6 +251,13 @@ config ARCH_CHIP_STM32F100VE
select STM32_VALUELINE
select STM32_HIGHDENSITY
config ARCH_CHIP_STM32F102CB
bool "STM32F102CB"
select ARCH_CORTEXM3
select STM32_STM32F10XX
select STM32_USBACCESSLINE
select STM32_MEDIUMDENSITY
config ARCH_CHIP_STM32F103T8
bool "STM32F103T8"
select ARCH_CORTEXM3
@ -673,6 +680,14 @@ config STM32_PERFORMANCELINE
select STM32_HAVE_ADC2
select STM32_HAVE_CAN1
config STM32_USBACCESSLINE
bool
default n
select STM32_HAVE_USBDEV
select STM32_HAVE_FSMC
select STM32_HAVE_USART3
select STM32_HAVE_SPI2
config STM32_HIGHDENSITY
bool
default n

View File

@ -69,6 +69,10 @@
# if defined(CONFIG_STM32_VALUELINE)
# include "chip/stm32f100_pinmap.h"
/* STM32 F102 USB Access Medium Density Family */
# elif defined(CONFIG_ARCH_CHIP_STM32F102CB)
# include "chip/stm32f102_pinmap.h"
/* STM32 F103 Low / Medium Density Family */
# elif defined(CONFIG_ARCH_CHIP_STM32F103C4) || \
defined(CONFIG_ARCH_CHIP_STM32F103C8) || \