diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-02 08:35:46 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-02 08:35:46 +0000 |
commit | 7055e2b5aa1d15c342cd97a0750801fdc13beac6 (patch) | |
tree | b56515171d4868ee63b65e7238dc6aa7fd84b6ee /os/hal/ports/STM32/STM32L1xx | |
parent | 7d22893a937df028e2d702dadc5da8375d6239e3 (diff) | |
download | ChibiOS-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/STM32L1xx')
-rw-r--r-- | os/hal/ports/STM32/STM32L1xx/hal_lld.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32L1xx/hal_lld.c b/os/hal/ports/STM32/STM32L1xx/hal_lld.c index 78559a2b1..3f4c04329 100644 --- a/os/hal/ports/STM32/STM32L1xx/hal_lld.c +++ b/os/hal/ports/STM32/STM32L1xx/hal_lld.c @@ -98,8 +98,10 @@ static void hal_lld_backup_domain_init(void) { */
void hal_lld_init(void) {
- /* Reset of all peripherals.*/
- rccResetAHB(~RCC_AHBRSTR_FLITFRST);
+ /* Reset of all peripherals.
+ Note, GPIOs are not reset because initialized before this point in
+ board files.*/
+ rccResetAHB(~(RCC_AHBRSTR_FLITFRST | STM32_GPIO_EN_MASK));
rccResetAPB1(~RCC_APB1RSTR_PWRRST);
rccResetAPB2(~0);
|