From c1a535d343d6ea6e84f99b9b0b760d9a582ad969 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 26 Nov 2011 10:30:56 +0000 Subject: Unified STM32 registers header file stm32.h. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3526 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 169 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 os/hal/platforms/STM32/stm32.h (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h new file mode 100644 index 000000000..0ee083dcc --- /dev/null +++ b/os/hal/platforms/STM32/stm32.h @@ -0,0 +1,169 @@ +/* + ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, + 2011 Giovanni Di Sirio. + + This file is part of ChibiOS/RT. + + ChibiOS/RT is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS/RT is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +/** + * @file STM32/stm32.h + * @brief STM32 common header. + * @pre One of the following macros must be defined before including + * this header, the macro selects the inclusion of the appropriate + * vendor header: + * - STM32F10X_LD_VL for Value Line Low Density devices. + * - STM32F10X_MD_VL for Value Line Medium Density devices. + * - STM32F10X_LD for Performance Low Density devices. + * - STM32F10X_MD for Performance Medium Density devices. + * - STM32F10X_HD for Performance High Density devices. + * - STM32F10X_XL for Performance eXtra Density devices. + * - STM32F10X_CL for Connectivity Line devices. + * - STM32F2XX for High-performance STM32 F-2 devices. + * - STM32F4XX for High-performance STM32 F-4 devices. + * - STM32L1XX_MD for Ultra Low Power Medium-density devices. + * . + * + * @addtogroup HAL + * @{ + */ + +#ifndef _STM32_H_ +#define _STM32_H_ + +#if defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ + defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \ + defined(STM32F10X_MD) || defined(STM32F10X_HD) || \ + defined(STM32F10X_XL) || defined(STM32F10X_CL) || \ + defined(__DOXYGEN__) +#include "stm32f10x.h" +#endif + +#if defined(STM32F2XX) || defined(__DOXYGEN__) +#include "stm32f2xx.h" +#endif + +#if defined(STM32F4XX) || defined(__DOXYGEN__) +#include "stm32f4xx.h" +#endif + +#if defined(STM32L1XX_MD) || defined(__DOXYGEN__) +#include "stm32l1xx.h" +#endif + +#undef TIM1 +#undef TIM2 +#undef TIM3 +#undef TIM4 +#undef TIM5 +#undef TIM6 +#undef TIM7 +#undef TIM8 +#undef TIM9 +#undef TIM10 +#undef TIM11 +#undef TIM12 +#undef TIM13 +#undef TIM14 + +/*===========================================================================*/ +/* Driver constants. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver pre-compile time settings. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Derived constants and error checks. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver data structures and types. */ +/*===========================================================================*/ + +/** + * @brief STM32 TIM registers block. + * @note Redefined from the ST headers because the non uniform + * declaration of the CCR registers among the various + * sub-families. + */ +typedef struct { + volatile uint16_t CR1; + uint16_t _resvd0; + volatile uint16_t CR2; + uint16_t _resvd1; + volatile uint16_t SMCR; + uint16_t _resvd2; + volatile uint16_t DIER; + uint16_t _resvd3; + volatile uint16_t SR; + uint16_t _resvd4; + volatile uint16_t EGR; + uint16_t _resvd5; + volatile uint16_t CCMR1; + uint16_t _resvd6; + volatile uint16_t CCMR2; + uint16_t _resvd7; + volatile uint16_t CCER; + uint16_t _resvd8; + volatile uint32_t CNT; + volatile uint16_t PSC; + uint16_t _resvd9; + volatile uint32_t ARR; + volatile uint16_t RCR; + uint16_t _resvd10; + volatile uint32_t CCR[4]; + volatile uint16_t BDTR; + uint16_t _resvd11; + volatile uint16_t DCR; + uint16_t _resvd12; + volatile uint16_t DMAR; + uint16_t _resvd13; + volatile uint16_t OR; + uint16_t _resvd14; +} stm32_tim_t; + +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + +/** + * @name TIM units references + * @{ + */ +#define STM32_TIM1 ((stm32_tim_t *)TIM1_BASE) +#define STM32_TIM2 ((stm32_tim_t *)TIM2_BASE) +#define STM32_TIM3 ((stm32_tim_t *)TIM3_BASE) +#define STM32_TIM4 ((stm32_tim_t *)TIM4_BASE) +#define STM32_TIM5 ((stm32_tim_t *)TIM5_BASE) +#define STM32_TIM6 ((stm32_tim_t *)TIM6_BASE) +#define STM32_TIM7 ((stm32_tim_t *)TIM7_BASE) +#define STM32_TIM8 ((stm32_tim_t *)TIM8_BASE) +#define STM32_TIM9 ((stm32_tim_t *)TIM9_BASE) +#define STM32_TIM10 ((stm32_tim_t *)TIM10_BASE) +#define STM32_TIM11 ((stm32_tim_t *)TIM11_BASE) +#define STM32_TIM12 ((stm32_tim_t *)TIM12_BASE) +#define STM32_TIM13 ((stm32_tim_t *)TIM13_BASE) +#define STM32_TIM14 ((stm32_tim_t *)TIM14_BASE) +/** @} */ + +/*===========================================================================*/ +/* External declarations. */ +/*===========================================================================*/ + +#endif /* _STM32_H_ */ + +/** @} */ -- cgit v1.2.3 From 1965f6c027c2e4ade1f2005d822009b511f346d9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 29 Nov 2011 07:53:31 +0000 Subject: Removed unnecessary undefs. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3544 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 0ee083dcc..c051dafe0 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -63,21 +63,6 @@ #include "stm32l1xx.h" #endif -#undef TIM1 -#undef TIM2 -#undef TIM3 -#undef TIM4 -#undef TIM5 -#undef TIM6 -#undef TIM7 -#undef TIM8 -#undef TIM9 -#undef TIM10 -#undef TIM11 -#undef TIM12 -#undef TIM13 -#undef TIM14 - /*===========================================================================*/ /* Driver constants. */ /*===========================================================================*/ -- cgit v1.2.3 From de5dcbba856524599a8f06d3a9bdbf1b01db44c2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 21 Jan 2012 14:29:42 +0000 Subject: License text updated with new year. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3846 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index c051dafe0..24929cf3a 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -1,6 +1,6 @@ /* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011 Giovanni Di Sirio. + 2011,2012 Giovanni Di Sirio. This file is part of ChibiOS/RT. -- cgit v1.2.3 From 7a6a1679a413987ffa47f2f9892e241f3448f5f0 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 24 May 2012 18:31:34 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4232 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 24929cf3a..49c1c08bb 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -24,6 +24,7 @@ * @pre One of the following macros must be defined before including * this header, the macro selects the inclusion of the appropriate * vendor header: + * - STM32F0XX for Entry Level devices. * - STM32F10X_LD_VL for Value Line Low Density devices. * - STM32F10X_MD_VL for Value Line Medium Density devices. * - STM32F10X_LD for Performance Low Density devices. @@ -43,24 +44,27 @@ #ifndef _STM32_H_ #define _STM32_H_ -#if defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ - defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \ - defined(STM32F10X_MD) || defined(STM32F10X_HD) || \ - defined(STM32F10X_XL) || defined(STM32F10X_CL) || \ - defined(__DOXYGEN__) +#if defined(STM32F0XX) +#include "stm32f0xx.h" + +#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ + defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \ + defined(STM32F10X_MD) || defined(STM32F10X_HD) || \ + defined(STM32F10X_XL) || defined(STM32F10X_CL) || \ + defined(__DOXYGEN__) #include "stm32f10x.h" -#endif -#if defined(STM32F2XX) || defined(__DOXYGEN__) +#elif defined(STM32F2XX) || defined(__DOXYGEN__) #include "stm32f2xx.h" -#endif -#if defined(STM32F4XX) || defined(__DOXYGEN__) +#elif defined(STM32F4XX) || defined(__DOXYGEN__) #include "stm32f4xx.h" -#endif -#if defined(STM32L1XX_MD) || defined(__DOXYGEN__) +#elif defined(STM32L1XX_MD) || defined(__DOXYGEN__) #include "stm32l1xx.h" + +#else +#error "STM32 device not specified" #endif /*===========================================================================*/ -- cgit v1.2.3 From de6bbbb9eff7592723d401c6340b9e4c78b24953 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 19 Jun 2012 16:47:09 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4307 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 49c1c08bb..a872a2a00 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -54,13 +54,17 @@ defined(__DOXYGEN__) #include "stm32f10x.h" -#elif defined(STM32F2XX) || defined(__DOXYGEN__) +/* Resolving naming anomalies related to the STM32F1xx sub-family.*/ +#define CAN1_TX_IRQn USB_HP_CAN1_TX_IRQn +#define CAN1_RX0_IRQn USB_LP_CAN1_RX0_IRQn + +#elif defined(STM32F2XX) #include "stm32f2xx.h" -#elif defined(STM32F4XX) || defined(__DOXYGEN__) +#elif defined(STM32F4XX) #include "stm32f4xx.h" -#elif defined(STM32L1XX_MD) || defined(__DOXYGEN__) +#elif defined(STM32L1XX_MD) #include "stm32l1xx.h" #else -- cgit v1.2.3 From 6af0806da3d9df7ea9f6410a74ad8c864926bd7f Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 20 Jun 2012 08:39:04 +0000 Subject: Fixed bugs 3536522 and 3536523. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4309 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index a872a2a00..97858e07d 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -47,6 +47,9 @@ #if defined(STM32F0XX) #include "stm32f0xx.h" +/* Resolving naming anomalies related to the STM32F0xx sub-family.*/ +#define TIM1_UP_IRQn TIM1_BRK_UP_TRG_COM_IRQn + #elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \ defined(STM32F10X_MD) || defined(STM32F10X_HD) || \ @@ -57,13 +60,28 @@ /* Resolving naming anomalies related to the STM32F1xx sub-family.*/ #define CAN1_TX_IRQn USB_HP_CAN1_TX_IRQn #define CAN1_RX0_IRQn USB_LP_CAN1_RX0_IRQn +#if defined(STM32F10X_XL) +#define TIM1_UP_IRQn TIM1_UP_TIM16_IRQn +#define TIM8_UP_IRQn TIM8_UP_TIM13_IRQn +#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ + defined(STM32F10X_HD_VL) +#define TIM1_UP_IRQn TIM1_UP_TIM16_IRQn +#endif #elif defined(STM32F2XX) #include "stm32f2xx.h" +/* Resolving naming anomalies related to the STM32F2xx sub-family.*/ +#define TIM1_UP_IRQn TIM1_UP_TIM10_IRQn +#define TIM8_UP_IRQn TIM8_UP_TIM13_IRQn + #elif defined(STM32F4XX) #include "stm32f4xx.h" +/* Resolving naming anomalies related to the STM32F4xx sub-family.*/ +#define TIM1_UP_IRQn TIM1_UP_TIM10_IRQn +#define TIM8_UP_IRQn TIM8_UP_TIM13_IRQn + #elif defined(STM32L1XX_MD) #include "stm32l1xx.h" -- cgit v1.2.3 From 16176f7bdfe022cb4934e20d8d7d19e2a26c954e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 21 Jun 2012 16:39:53 +0000 Subject: STM32 GPT driver adapted to the new ISR names. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4314 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 97858e07d..bcb808300 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -47,9 +47,6 @@ #if defined(STM32F0XX) #include "stm32f0xx.h" -/* Resolving naming anomalies related to the STM32F0xx sub-family.*/ -#define TIM1_UP_IRQn TIM1_BRK_UP_TRG_COM_IRQn - #elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ defined(STM32F10X_HD_VL) || defined(STM32F10X_LD) || \ defined(STM32F10X_MD) || defined(STM32F10X_HD) || \ -- cgit v1.2.3 From a41017aac10f2255f13ce45044f567b021eeb474 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 21 Jun 2012 17:24:17 +0000 Subject: STM32 ICU and PWM drivers adapted to the new ISR names. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4319 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index bcb808300..a872a2a00 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -57,28 +57,13 @@ /* Resolving naming anomalies related to the STM32F1xx sub-family.*/ #define CAN1_TX_IRQn USB_HP_CAN1_TX_IRQn #define CAN1_RX0_IRQn USB_LP_CAN1_RX0_IRQn -#if defined(STM32F10X_XL) -#define TIM1_UP_IRQn TIM1_UP_TIM16_IRQn -#define TIM8_UP_IRQn TIM8_UP_TIM13_IRQn -#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \ - defined(STM32F10X_HD_VL) -#define TIM1_UP_IRQn TIM1_UP_TIM16_IRQn -#endif #elif defined(STM32F2XX) #include "stm32f2xx.h" -/* Resolving naming anomalies related to the STM32F2xx sub-family.*/ -#define TIM1_UP_IRQn TIM1_UP_TIM10_IRQn -#define TIM8_UP_IRQn TIM8_UP_TIM13_IRQn - #elif defined(STM32F4XX) #include "stm32f4xx.h" -/* Resolving naming anomalies related to the STM32F4xx sub-family.*/ -#define TIM1_UP_IRQn TIM1_UP_TIM10_IRQn -#define TIM8_UP_IRQn TIM8_UP_TIM13_IRQn - #elif defined(STM32L1XX_MD) #include "stm32l1xx.h" -- cgit v1.2.3 From 11907c39a829e1ecef33da09974028349af683f2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 21 Jun 2012 17:39:26 +0000 Subject: STM32 CAN driver adapted to the new ISR names. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4320 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index a872a2a00..eb64976cb 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -54,10 +54,6 @@ defined(__DOXYGEN__) #include "stm32f10x.h" -/* Resolving naming anomalies related to the STM32F1xx sub-family.*/ -#define CAN1_TX_IRQn USB_HP_CAN1_TX_IRQn -#define CAN1_RX0_IRQn USB_LP_CAN1_RX0_IRQn - #elif defined(STM32F2XX) #include "stm32f2xx.h" -- cgit v1.2.3 From efbd7db9789c18e465750646d51a5fab936c5fc6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 22 Oct 2012 17:46:59 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4776 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index eb64976cb..0a01169d0 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -33,6 +33,7 @@ * - STM32F10X_XL for Performance eXtra Density devices. * - STM32F10X_CL for Connectivity Line devices. * - STM32F2XX for High-performance STM32 F-2 devices. + * - STM32F30X for Analog & DSP devices. * - STM32F4XX for High-performance STM32 F-4 devices. * - STM32L1XX_MD for Ultra Low Power Medium-density devices. * . @@ -57,6 +58,9 @@ #elif defined(STM32F2XX) #include "stm32f2xx.h" +#elif defined(STM32F30X) +#include "stm32f30x.h" + #elif defined(STM32F4XX) #include "stm32f4xx.h" -- cgit v1.2.3 From 184a71345c6a36a9a8664eda8fbcc3ea728267a8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 2 Feb 2013 10:58:09 +0000 Subject: Updated license years. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5102 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 0a01169d0..c942b9200 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -1,6 +1,6 @@ /* ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011,2012 Giovanni Di Sirio. + 2011,2012,2013 Giovanni Di Sirio. This file is part of ChibiOS/RT. -- cgit v1.2.3 From ecab0727815d553529cc901ca5a0bb68919b110a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 10 Feb 2013 11:05:48 +0000 Subject: Related to STM32F37x support. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5147 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index c942b9200..8390d0c01 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -34,6 +34,7 @@ * - STM32F10X_CL for Connectivity Line devices. * - STM32F2XX for High-performance STM32 F-2 devices. * - STM32F30X for Analog & DSP devices. + * - STM32F37X for Analog & DSP devices. * - STM32F4XX for High-performance STM32 F-4 devices. * - STM32L1XX_MD for Ultra Low Power Medium-density devices. * . @@ -61,6 +62,9 @@ #elif defined(STM32F30X) #include "stm32f30x.h" +#elif defined(STM32F37X) +#include "stm32f37x.h" + #elif defined(STM32F4XX) #include "stm32f4xx.h" -- cgit v1.2.3 From 853216256ad4cdacf5f94edb7d6b738c6be165a1 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 30 Mar 2013 10:32:37 +0000 Subject: Relicensing parts of the tree under the Apache 2.0 license. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5521 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/stm32.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'os/hal/platforms/STM32/stm32.h') diff --git a/os/hal/platforms/STM32/stm32.h b/os/hal/platforms/STM32/stm32.h index 8390d0c01..b56f769b5 100644 --- a/os/hal/platforms/STM32/stm32.h +++ b/os/hal/platforms/STM32/stm32.h @@ -1,21 +1,17 @@ /* - ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, - 2011,2012,2013 Giovanni Di Sirio. + ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio - This file is part of ChibiOS/RT. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at - ChibiOS/RT is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. + http://www.apache.org/licenses/LICENSE-2.0 - ChibiOS/RT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. */ /** -- cgit v1.2.3