aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F37x/hal_lld.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-12-02 08:35:46 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-12-02 08:35:46 +0000
commit7055e2b5aa1d15c342cd97a0750801fdc13beac6 (patch)
treeb56515171d4868ee63b65e7238dc6aa7fd84b6ee /os/hal/ports/STM32/STM32F37x/hal_lld.c
parent7d22893a937df028e2d702dadc5da8375d6239e3 (diff)
downloadChibiOS-7055e2b5aa1d15c342cd97a0750801fdc13beac6.tar.gz
ChibiOS-7055e2b5aa1d15c342cd97a0750801fdc13beac6.tar.bz2
ChibiOS-7055e2b5aa1d15c342cd97a0750801fdc13beac6.zip
All STM32 GPIOv2 platforms reworked for the new board files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11099 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F37x/hal_lld.c')
-rw-r--r--os/hal/ports/STM32/STM32F37x/hal_lld.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32F37x/hal_lld.c b/os/hal/ports/STM32/STM32F37x/hal_lld.c
index 51dd71cc7..bc5d27e96 100644
--- a/os/hal/ports/STM32/STM32F37x/hal_lld.c
+++ b/os/hal/ports/STM32/STM32F37x/hal_lld.c
@@ -104,8 +104,10 @@ static void hal_lld_backup_domain_init(void) {
*/
void hal_lld_init(void) {
- /* Reset of all peripherals.*/
- rccResetAHB(0xFFFFFFFF);
+ /* Reset of all peripherals.
+ Note, GPIOs are not reset because initialized before this point in
+ board files.*/
+ rccResetAHB(~STM32_GPIO_EN_MASK);
rccResetAPB1(0xFFFFFFFF);
rccResetAPB2(0xFFFFFFFF);