From a6c8e0930fd88d3834662e2bf7eb7c98a8c0bb9c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 8 Feb 2009 12:36:07 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@746 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../stm32lib/inc/stm32f10x_conf.h | 36 +++++++++++----------- demos/ARMCM3-STM32F103-GCC/stm32lib/stm32lib.mk | 25 +++++++++++++++ 2 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 demos/ARMCM3-STM32F103-GCC/stm32lib/stm32lib.mk (limited to 'demos/ARMCM3-STM32F103-GCC/stm32lib') diff --git a/demos/ARMCM3-STM32F103-GCC/stm32lib/inc/stm32f10x_conf.h b/demos/ARMCM3-STM32F103-GCC/stm32lib/inc/stm32f10x_conf.h index dcffed158..3bfc763f4 100644 --- a/demos/ARMCM3-STM32F103-GCC/stm32lib/inc/stm32f10x_conf.h +++ b/demos/ARMCM3-STM32F103-GCC/stm32lib/inc/stm32f10x_conf.h @@ -29,28 +29,28 @@ /* Comment the line below to disable the specific peripheral inclusion */ /************************************* ADC ************************************/ -//#define _ADC -//#define _ADC1 +#define _ADC +#define _ADC1 //#define _ADC2 //#define _ADC3 /************************************* BKP ************************************/ -//#define _BKP +#define _BKP /************************************* CAN ************************************/ -//#define _CAN +#define _CAN /************************************* CRC ************************************/ -//#define _CRC +#define _CRC /************************************* DAC ************************************/ -//#define _DAC +#define _DAC /************************************* DBGMCU *********************************/ -//#define _DBGMCU +#define _DBGMCU /************************************* DMA ************************************/ -//#define _DMA +#define _DMA //#define _DMA1_Channel1 //#define _DMA1_Channel2 //#define _DMA1_Channel3 @@ -65,7 +65,7 @@ //#define _DMA2_Channel5 /************************************* EXTI ***********************************/ -//#define _EXTI +#define _EXTI /************************************* FLASH and Option Bytes *****************/ #define _FLASH @@ -75,7 +75,7 @@ /* #define _FLASH_PROG */ /************************************* FSMC ***********************************/ -//#define _FSMC +#define _FSMC /************************************* GPIO ***********************************/ #define _GPIO @@ -86,7 +86,7 @@ //#define _GPIOE //#define _GPIOF //#define _GPIOG -//#define _AFIO +#define _AFIO /************************************* I2C ************************************/ //#define _I2C @@ -94,22 +94,22 @@ //#define _I2C2 /************************************* IWDG ***********************************/ -//#define _IWDG +#define _IWDG /************************************* NVIC ***********************************/ -//#define _NVIC +#define _NVIC /************************************* PWR ************************************/ -//#define _PWR +#define _PWR /************************************* RCC ************************************/ #define _RCC /************************************* RTC ************************************/ -//#define _RTC +#define _RTC /************************************* SDIO ***********************************/ -//#define _SDIO +#define _SDIO /************************************* SPI ************************************/ //#define _SPI @@ -118,7 +118,7 @@ //#define _SPI3 /************************************* SysTick ********************************/ -//#define _SysTick +#define _SysTick /************************************* TIM ************************************/ //#define _TIM @@ -140,7 +140,7 @@ //#define _UART5 /************************************* WWDG ***********************************/ -//#define _WWDG +#define _WWDG /* In the following line adjust the value of External High Speed oscillator (HSE) used in your application */ diff --git a/demos/ARMCM3-STM32F103-GCC/stm32lib/stm32lib.mk b/demos/ARMCM3-STM32F103-GCC/stm32lib/stm32lib.mk new file mode 100644 index 000000000..ed7ec62fb --- /dev/null +++ b/demos/ARMCM3-STM32F103-GCC/stm32lib/stm32lib.mk @@ -0,0 +1,25 @@ +# STM32 FWLib files. +STM32SRC = stm32lib/src/stm32f10x_adc.c \ + stm32lib/src/stm32f10x_bkp.c \ + stm32lib/src/stm32f10x_can.c \ + stm32lib/src/stm32f10x_crc.c \ + stm32lib/src/stm32f10x_dac.c \ + stm32lib/src/stm32f10x_dbgmcu.c \ + stm32lib/src/stm32f10x_dma.c \ + stm32lib/src/stm32f10x_exti.c \ + stm32lib/src/stm32f10x_flash.c \ + stm32lib/src/stm32f10x_fsmc.c \ + stm32lib/src/stm32f10x_gpio.c \ + stm32lib/src/stm32f10x_i2c.c \ + stm32lib/src/stm32f10x_iwdg.c \ + stm32lib/src/stm32f10x_lib.c \ + stm32lib/src/stm32f10x_nvic.c \ + stm32lib/src/stm32f10x_pwr.c \ + stm32lib/src/stm32f10x_rcc.c \ + stm32lib/src/stm32f10x_rtc.c \ + stm32lib/src/stm32f10x_sdio.c \ + stm32lib/src/stm32f10x_spi.c \ + stm32lib/src/stm32f10x_systick.c \ + stm32lib/src/stm32f10x_tim.c \ + stm32lib/src/stm32f10x_usart.c \ + stm32lib/src/stm32f10x_wwdg.c -- cgit v1.2.3