From 7a28c272f894eb478681fe9b8cf746eaf4f7c054 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Mon, 23 May 2016 16:33:56 +0000 Subject: [PATCH] Fixed Bug #742 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_16.1.x@9506 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F4xx/hal_lld.h | 6 ------ os/hal/ports/STM32/STM32F7xx/hal_lld.h | 6 ------ readme.txt | 1 + 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld.h b/os/hal/ports/STM32/STM32F4xx/hal_lld.h index 2bc06ef3d..bc7556b4c 100644 --- a/os/hal/ports/STM32/STM32F4xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32F4xx/hal_lld.h @@ -398,12 +398,6 @@ #define STM32_MCO2SEL_HSE (2U << 30) /**< HSE clock on MCO2 pin. */ #define STM32_MCO2SEL_PLL (3U << 30) /**< PLL clock on MCO2 pin. */ -#define STM32_RTC_NOCLOCK (0 << 8) /**< No clock. */ -#define STM32_RTC_LSE (1 << 8) /**< LSE used as RTC clock. */ -#define STM32_RTC_LSI (2 << 8) /**< LSI used as RTC clock. */ -#define STM32_RTC_HSE (3 << 8) /**< HSE divided by programmable - prescaler used as RTC clock*/ - /** * @name RCC_PLLI2SCFGR register bits definitions * @{ diff --git a/os/hal/ports/STM32/STM32F7xx/hal_lld.h b/os/hal/ports/STM32/STM32F7xx/hal_lld.h index 7b1232a19..b850f51d4 100644 --- a/os/hal/ports/STM32/STM32F7xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32F7xx/hal_lld.h @@ -270,12 +270,6 @@ #define STM32_MCO2SEL_HSE (2U << 30) /**< HSE clock on MCO2 pin. */ #define STM32_MCO2SEL_PLL (3U << 30) /**< PLL clock on MCO2 pin. */ -#define STM32_RTC_NOCLOCK (0 << 8) /**< No clock. */ -#define STM32_RTC_LSE (1 << 8) /**< LSE used as RTC clock. */ -#define STM32_RTC_LSI (2 << 8) /**< LSI used as RTC clock. */ -#define STM32_RTC_HSE (3 << 8) /**< HSE divided by programmable - prescaler used as RTC clock*/ - /** * @name RCC_PLLI2SCFGR register bits definitions * @{ diff --git a/readme.txt b/readme.txt index b1db31d96..af4422c9e 100644 --- a/readme.txt +++ b/readme.txt @@ -73,6 +73,7 @@ ***************************************************************************** *** 16.1.5 *** +- HAL: Removed unused macros in STM32F7xx and STM32F4xx hal_lld.h (bug #742). - HAL: Fixed Doxygen related macros in STM32F7xx, STM32L0xx and STM32L4xx lld files (bug #741). - HAL: Fixed bug in VREF enable/disable functions in ADCv3 driver