aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorDave Flogeras <dflogeras2@gmail.com>2018-11-01 09:34:19 -0300
committerDave Flogeras <dflogeras2@gmail.com>2018-11-01 09:34:19 -0300
commit28a4beafd13a80bec19e74acc5875bd6723a8e1d (patch)
tree2c81d6f646bdabe1b475730d75a284b3fed60cc5 /os
parenta0e2c3a785cff480ecb803a2557c1bdf1d03f9d3 (diff)
downloadChibiOS-Contrib-28a4beafd13a80bec19e74acc5875bd6723a8e1d.tar.gz
ChibiOS-Contrib-28a4beafd13a80bec19e74acc5875bd6723a8e1d.tar.bz2
ChibiOS-Contrib-28a4beafd13a80bec19e74acc5875bd6723a8e1d.zip
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.
Diffstat (limited to 'os')
-rwxr-xr-xos/hal/ports/STM32/LLD/CRCv1/hal_crc_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/CRCv1/hal_crc_lld.c b/os/hal/ports/STM32/LLD/CRCv1/hal_crc_lld.c
index 180a383..882022b 100755
--- a/os/hal/ports/STM32/LLD/CRCv1/hal_crc_lld.c
+++ b/os/hal/ports/STM32/LLD/CRCv1/hal_crc_lld.c
@@ -160,7 +160,7 @@ void crc_lld_start(CRCDriver *crcp) {
if (crcp->config == NULL)
crcp->config = &default_config;
- rccEnableCRC();
+ rccEnableCRC( FALSE );
#if STM32_CRC_PROGRAMMABLE == TRUE
crcp->crc->INIT = crcp->config->initial_val;