aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32L4xx/hal_lld.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-12-02 09:22:23 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-12-02 09:22:23 +0000
commitafbc92a7f789d0f1a747341a37c0e6f881f36085 (patch)
treea1ba26ed3da9c313866eb5f3ed6c19db26de0126 /os/hal/ports/STM32/STM32L4xx/hal_lld.c
parent7055e2b5aa1d15c342cd97a0750801fdc13beac6 (diff)
downloadChibiOS-afbc92a7f789d0f1a747341a37c0e6f881f36085.tar.gz
ChibiOS-afbc92a7f789d0f1a747341a37c0e6f881f36085.tar.bz2
ChibiOS-afbc92a7f789d0f1a747341a37c0e6f881f36085.zip
Updated GPIOv3 for new board files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11101 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32L4xx/hal_lld.c')
-rw-r--r--os/hal/ports/STM32/STM32L4xx/hal_lld.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/hal_lld.c b/os/hal/ports/STM32/STM32L4xx/hal_lld.c
index 5b6be0999..d4022262b 100644
--- a/os/hal/ports/STM32/STM32L4xx/hal_lld.c
+++ b/os/hal/ports/STM32/STM32L4xx/hal_lld.c
@@ -109,9 +109,11 @@ static void hal_lld_backup_domain_init(void) {
*/
void hal_lld_init(void) {
- /* Reset of all peripherals.*/
+ /* Reset of all peripherals.
+ Note, GPIOs are not reset because initialized before this point in
+ board files.*/
rccResetAHB1(~0);
- rccResetAHB2(~0);
+ rccResetAHB2(~STM32_GPIO_EN_MASK);
rccResetAHB3(~0);
rccResetAPB1R1(~RCC_APB1RSTR1_PWRRST);
rccResetAPB1R2(~0);