Merge pull request #287 from snazarkin/crc-patch-1

Don't include SW CRC if not requested
This commit is contained in:
Fabien Poussin 2021-07-21 21:00:09 +02:00 committed by GitHub
commit 1310a8ce93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -72,9 +72,13 @@ typedef enum {
CRC_COMPLETE /* Asynchronous operation complete. */
} crcstate_t;
#if STM32_CRC_USE_CRC1 == TRUE
#include "hal_crc_lld.h"
#include "crcsw.h" /* Include software LL driver */
#endif
#if CRCSW_USE_CRC1 == TRUE
#include "crcsw.h" /* Include software LL driver */
#endif
/*===========================================================================*/
/* Driver macros. */