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

Move Cortex-M specifics from :platform:core into :platform:cortex-m #176

Merged
merged 2 commits into from
Feb 28, 2019

Conversation

salkinium
Copy link
Member

@salkinium salkinium commented Feb 28, 2019

Most code in :platform:core is actually Cortex-M specific, and is thus moved into the common :platform:cortex-m module and can be reused for other vendors.

The only STM32 specific things are the RCC calls at the very beginning of the Reset_Handler, which were encapsulated into __modm_initialize_platform() and of course the linkerscript templates. These were already split into a common file containing only Cortex-M specifics which were then arranged and specialized via Jinja2 macro calls in the STM32 specific templates.

Finally, the linkerscript additions were implemented using Collectors, so that more than one linkerscript addition can be done and these internal details are not exposed to the user via lbuild discover.

Unfortunately this is a breaking change, since all option keys starting with :platform:core must be refactored to start with :platform:cortex-m now. This is unfortunate, but well… this is modm and we break stuff.

  • Document queries and collectors.

This moves STM32 specific code from the `:platform:cortex-m` module
into the `:platform:core` module including:

 - linkerscript selection
 - memory region pruning
 - pre-startup code
@salkinium salkinium merged commit dee5ea2 into modm-io:develop Feb 28, 2019
@salkinium salkinium deleted the feature/core-split branch February 28, 2019 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant