aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-12-25 17:22:41 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-12-25 17:22:41 +0000
commitfaf6c9f25fbf74966420c2582b86114a0c55aebf (patch)
tree61fb8a91ccab2a55fb8b93e1486f43c4e3548c44 /os/hal/ports/STM32
parent72c3417c88c7133ce4e38c49e7d25befea877131 (diff)
downloadChibiOS-faf6c9f25fbf74966420c2582b86114a0c55aebf.tar.gz
ChibiOS-faf6c9f25fbf74966420c2582b86114a0c55aebf.tar.bz2
ChibiOS-faf6c9f25fbf74966420c2582b86114a0c55aebf.zip
LED flashing but at a wrong rate, so, still issues.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11183 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r--os/hal/ports/STM32/LLD/GPIOv2/stm32_gpio.h1
-rw-r--r--os/hal/ports/STM32/STM32H7xx/hal_lld.h6
2 files changed, 2 insertions, 5 deletions
diff --git a/os/hal/ports/STM32/LLD/GPIOv2/stm32_gpio.h b/os/hal/ports/STM32/LLD/GPIOv2/stm32_gpio.h
index acc5324e3..5dec0825d 100644
--- a/os/hal/ports/STM32/LLD/GPIOv2/stm32_gpio.h
+++ b/os/hal/ports/STM32/LLD/GPIOv2/stm32_gpio.h
@@ -96,7 +96,6 @@ typedef struct {
volatile uint32_t LOCKR;
volatile uint32_t AFRL;
volatile uint32_t AFRH;
- volatile uint32_t BRR;
} stm32_gpio_t;
/*===========================================================================*/
diff --git a/os/hal/ports/STM32/STM32H7xx/hal_lld.h b/os/hal/ports/STM32/STM32H7xx/hal_lld.h
index 9f9818f18..639269b05 100644
--- a/os/hal/ports/STM32/STM32H7xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32H7xx/hal_lld.h
@@ -1607,8 +1607,7 @@
/**
* @brief PLL2 DIVP field.
*/
-#if ((STM32_PLL2_DIVP_VALUE >= 2) && (STM32_PLL2_DIVP_VALUE <= 128) && \
- ((STM32_PLL2_DIVP_VALUE & 1U) == 0U)) || \
+#if ((STM32_PLL2_DIVP_VALUE >= 2) && (STM32_PLL2_DIVP_VALUE <= 128)) || \
defined(__DOXYGEN__)
#define STM32_PLL2_DIVP ((STM32_PLL2_DIVP_VALUE - 1U) << 9U)
#else
@@ -1618,8 +1617,7 @@
/**
* @brief PLL3 DIVP field.
*/
-#if ((STM32_PLL3_DIVP_VALUE >= 2) && (STM32_PLL3_DIVP_VALUE <= 128) && \
- ((STM32_PLL3_DIVP_VALUE & 1U) == 0U)) || \
+#if ((STM32_PLL3_DIVP_VALUE >= 2) && (STM32_PLL3_DIVP_VALUE <= 128)) || \
defined(__DOXYGEN__)
#define STM32_PLL3_DIVP ((STM32_PLL3_DIVP_VALUE - 1U) << 9U)
#else