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

generate_hal_matrix.py infers System Clock peripheral if device has Flash #671

Open
twasilczyk opened this issue Aug 22, 2021 · 1 comment

Comments

@twasilczyk
Copy link
Contributor

The root cause is in a way generate_hal_matrix.py parsed src/modm/platform/clock/stm32/module.lb while populating file_cache.

It looks for (has_driver|get_driver|get_all_drivers) regexp to infer hardware names, but this specific file has a large section marked TODO: Move this data into the device files that touches random drivers, i.e. checks flash latency and usb prescaler. As a result, mapping for System Clock is {'gclk', 'rcc', 'flash', 'usb'}.

@salkinium
Copy link
Member

Yep indeed. And I thought I was being clever for once… 😭

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

No branches or pull requests

2 participants