Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to CRC peripheral by default #1715

Merged
merged 1 commit into from
May 12, 2022
Merged

Conversation

cparata
Copy link
Contributor

@cparata cparata commented May 12, 2022

Hello,
I would like to add the CRC peripheral support by default in the Core. It could be useful to run some binary libraries like MotionFX.
Best Regards,
Carlo

@fpistm fpistm self-requested a review May 12, 2022 12:04
@fpistm fpistm added this to In progress in STM32 core based on ST HAL via automation May 12, 2022
@fpistm fpistm added this to the 2.3.0 milestone May 12, 2022
STM32 core based on ST HAL automation moved this from In progress to Needs review May 12, 2022
@@ -19,6 +19,8 @@
extern "C" {
#endif

CRC_HandleTypeDef hcrc = {.Instance = CRC};
Copy link
Member

@fpistm fpistm May 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CRC_HandleTypeDef hcrc = {.Instance = CRC};
#ifdef CRC2_BASE
#define CRC_INSTANCE CRC2
#elif defined(CRC_BASE)
#define CRC_INSTANCE CRC
#else
#error "No CRC instance available"
#endif
CRC_HandleTypeDef hcrc = {.Instance = CRC_INSTANCE};

libraries/SrcWrapper/src/stm32/hw_config.c Show resolved Hide resolved
@@ -19,6 +19,8 @@
extern "C" {
#endif

CRC_HandleTypeDef hcrc = {.Instance = CRC};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CRC_HandleTypeDef hcrc = {.Instance = CRC};
#if defined(CRC_BASE)
CRC_HandleTypeDef hcrc = {.Instance = CRC};
#endif

libraries/SrcWrapper/src/stm32/clock.c Outdated Show resolved Hide resolved
STM32 core based on ST HAL automation moved this from Needs review to Reviewer approved May 12, 2022
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Waiting CI result before merge.

@fpistm fpistm merged commit f44e2aa into stm32duino:main May 12, 2022
STM32 core based on ST HAL automation moved this from Reviewer approved to Done May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants