Skip to content

Add option for 16Mhz XTAL as well as 8Mhz - #797

Open
etharooni wants to merge 1 commit into
vedderb:masterfrom
etharooni:16mhz_xtal
Open

Add option for 16Mhz XTAL as well as 8Mhz#797
etharooni wants to merge 1 commit into
vedderb:masterfrom
etharooni:16mhz_xtal

Conversation

@etharooni

Copy link
Copy Markdown

Custom VESC hardware uses 16Mhz crystal. I needed support from this in its specific hwconf file.

@kaidegit

kaidegit commented Aug 18, 2025

Copy link
Copy Markdown

I think give a default(in here 8M) and can be overwrite in hw_xxx.h is better.

The overwrite function can be generated by cubemx and a small script.

@zamonary1

Copy link
Copy Markdown

I think that's a good change to be implemented. The changed code seems to implement the default behavior for 8mhz crystal and keep the compatibility with existing hwconf files, while providing an option to use other HSE values for hardware developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants