Fix for rccEnableCRC macro parameter.

This was removed in commit
ae7a4d40b84d8afc999691577210696f16e682f6#diff-7ddaa5ecc31109f41b7801dea2660b47

But I think is still necessary as the underlying rccEnableAHB macros
take parameter 'lp'.  It seems to work for the F0xx series, because its
rccEnableAHB ignores the 'lp'.  It is required when I tried to use the
CRC driver on a family that does require the 'lp' parameter in the lower
level macros.
This commit is contained in:
Dave Flogeras 2018-11-01 09:34:19 -03:00
parent a0e2c3a785
commit 28a4beafd1
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ void crc_lld_start(CRCDriver *crcp) {
if (crcp->config == NULL) if (crcp->config == NULL)
crcp->config = &default_config; crcp->config = &default_config;
rccEnableCRC(); rccEnableCRC( FALSE );
#if STM32_CRC_PROGRAMMABLE == TRUE #if STM32_CRC_PROGRAMMABLE == TRUE
crcp->crc->INIT = crcp->config->initial_val; crcp->crc->INIT = crcp->config->initial_val;