Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Repository structure #2

Open
alevy opened this issue Jan 18, 2018 · 2 comments
Open

Repository structure #2

alevy opened this issue Jan 18, 2018 · 2 comments
Labels
question Further information is requested

Comments

@alevy
Copy link
Member

alevy commented Jan 18, 2018

I think the basic structure makes sense right now, with two exceptions:

  1. It might be worth getting rid of the tock submodule, and instead depending on the main git repo, possibly tied to a specific commit. The biggest reason not to do this, I think, is that Signpost has been using a submodule pretty successfully and why rock the boat.

  2. The cortex-m3 crate could probably make its way into the main Tock repo sooner than everything else. While we don't currently have another Cortex-M3 supported upstream, there is really no difference between the M3 and M4 w.r.t to the details in these crates. The core kernel, on the other hand, is fairly coupled with the arch crate still, and it might be easier to change those in lockstep.

I don't think either need to change particularly quickly though.

As for the stm32 crate, I believe it actually has some stm32f1 specific code in there, but it might be easiest to just let that be and fix it when another variant needs it to be organized differently.

@alevy alevy added the question Further information is requested label Jan 18, 2018
@george-hopkins
Copy link
Contributor

I was probably a bit optimistic about sharing code with other STM32 families. I will cleanup stm32 in the coming days. Judging from the F4 port, most of the modules should get moved to the stm32f1 crate.

@WizardUli
Copy link
Contributor

There may not be lot of sharable peripheral code between main families (F1, F4, L4, ...) but those families are huge with their own subfamilies/lines and there is probably going to be a lot sharable code between them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants