git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5703 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-05-11 07:05:28 +00:00
parent c37cace2e9
commit eff9b74c9c
4 changed files with 11 additions and 9 deletions

View File

@ -101,7 +101,7 @@ void hal_lld_init(void) {
/* Reset of all peripherals.*/ /* Reset of all peripherals.*/
rccResetAPB1(0xFFFFFFFF); rccResetAPB1(0xFFFFFFFF);
rccResetAPB2(!RCC_APB2RSTR_DBGMCURST); rccResetAPB2(~RCC_APB2RSTR_DBGMCURST);
/* SysTick initialization using the system clock.*/ /* SysTick initialization using the system clock.*/
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1; SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;

View File

@ -95,11 +95,11 @@ void hal_lld_init(void) {
/* Reset of all peripherals. AHB3 is not reseted because it could have /* Reset of all peripherals. AHB3 is not reseted because it could have
been initialized in the board initialization file (board.c).*/ been initialized in the board initialization file (board.c).*/
rccResetAHB1(!0); rccResetAHB1(~0);
rccResetAHB2(!0); rccResetAHB2(~0);
rccResetAHB3(!0); rccResetAHB3(~0);
rccResetAPB1(!RCC_APB1RSTR_PWRRST); rccResetAPB1(~RCC_APB1RSTR_PWRRST);
rccResetAPB2(!0); rccResetAPB2(~0);
/* SysTick initialization using the system clock.*/ /* SysTick initialization using the system clock.*/
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1; SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;

View File

@ -94,9 +94,9 @@ static void hal_lld_backup_domain_init(void) {
void hal_lld_init(void) { void hal_lld_init(void) {
/* Reset of all peripherals.*/ /* Reset of all peripherals.*/
rccResetAHB(!RCC_AHBRSTR_FLITFRST); rccResetAHB(~RCC_AHBRSTR_FLITFRST);
rccResetAPB1(!RCC_APB1RSTR_PWRRST); rccResetAPB1(~RCC_APB1RSTR_PWRRST);
rccResetAPB2(!0); rccResetAPB2(~0);
/* SysTick initialization using the system clock.*/ /* SysTick initialization using the system clock.*/
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1; SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;

View File

@ -89,6 +89,8 @@
***************************************************************************** *****************************************************************************
*** 2.5.2 *** *** 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 STM32 SPIv2 polled exchange (bug #372).
- FIX: Fixed wrong macro in PWM driver (bug #407)(backported to 2.4.4). - FIX: Fixed wrong macro in PWM driver (bug #407)(backported to 2.4.4).
- FIX: Fixed USB driver possible deadlock under certain configurations (bug - FIX: Fixed USB driver possible deadlock under certain configurations (bug