Fixed bug #409.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5703 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
c37cace2e9
commit
eff9b74c9c
|
@ -101,7 +101,7 @@ void hal_lld_init(void) {
|
|||
|
||||
/* Reset of all peripherals.*/
|
||||
rccResetAPB1(0xFFFFFFFF);
|
||||
rccResetAPB2(!RCC_APB2RSTR_DBGMCURST);
|
||||
rccResetAPB2(~RCC_APB2RSTR_DBGMCURST);
|
||||
|
||||
/* SysTick initialization using the system clock.*/
|
||||
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;
|
||||
|
|
|
@ -95,11 +95,11 @@ void hal_lld_init(void) {
|
|||
|
||||
/* Reset of all peripherals. AHB3 is not reseted because it could have
|
||||
been initialized in the board initialization file (board.c).*/
|
||||
rccResetAHB1(!0);
|
||||
rccResetAHB2(!0);
|
||||
rccResetAHB3(!0);
|
||||
rccResetAPB1(!RCC_APB1RSTR_PWRRST);
|
||||
rccResetAPB2(!0);
|
||||
rccResetAHB1(~0);
|
||||
rccResetAHB2(~0);
|
||||
rccResetAHB3(~0);
|
||||
rccResetAPB1(~RCC_APB1RSTR_PWRRST);
|
||||
rccResetAPB2(~0);
|
||||
|
||||
/* SysTick initialization using the system clock.*/
|
||||
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;
|
||||
|
|
|
@ -94,9 +94,9 @@ static void hal_lld_backup_domain_init(void) {
|
|||
void hal_lld_init(void) {
|
||||
|
||||
/* Reset of all peripherals.*/
|
||||
rccResetAHB(!RCC_AHBRSTR_FLITFRST);
|
||||
rccResetAPB1(!RCC_APB1RSTR_PWRRST);
|
||||
rccResetAPB2(!0);
|
||||
rccResetAHB(~RCC_AHBRSTR_FLITFRST);
|
||||
rccResetAPB1(~RCC_APB1RSTR_PWRRST);
|
||||
rccResetAPB2(~0);
|
||||
|
||||
/* SysTick initialization using the system clock.*/
|
||||
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;
|
||||
|
|
|
@ -89,6 +89,8 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** 2.5.2 ***
|
||||
- FIX: Fixed STM32 wrong peripherals reset procedure (bug #409)(backported
|
||||
to 2.4.4).
|
||||
- FIX: Fixed STM32 SPIv2 polled exchange (bug #372).
|
||||
- FIX: Fixed wrong macro in PWM driver (bug #407)(backported to 2.4.4).
|
||||
- FIX: Fixed USB driver possible deadlock under certain configurations (bug
|
||||
|
|
Loading…
Reference in New Issue