fabricedesre / cc3200-rs

Getting Rust to run on a TI cc3200
Mozilla Public License 2.0
7 stars 2 forks source link

RFC: Example of how we might do board config #65

Closed dhylands closed 6 years ago

dhylands commented 7 years ago

I thought I'd throw this as an example for doing configuration.

dhylands commented 7 years ago

You can build using:

./build.sh --example http --features board-sensorweb

or

./build.sh --example http --features board-launchpadxl

Or you can add a line to Cargo.toml which says

default = [ "board-sensorweb" ]

although once a feature is set it can't be unset.

fabricedesre commented 7 years ago

I would rather remove the launchpadxl specifics out of this repo and create a board-launchpadxl library for these. In the same vein, we would have a board-sensorweb library with code for the on board temperature/humidity and PM2.5 sensors (maybe we can do something generic for the PM2.5 one?).

So the dependencies would be:

cc3200-rs crate
 |
 +-- cc3200 examples (in the cc3200-rs crate)
 |
 +-- board-launchpadxl crate
 |        |
 |        +-- launchpad examples using on board sensors (in the board-launchpadxl crate)
 |
 +-- board-sensorweb crate
          |
          +-- sensorweb-firmware crate

What do you think?

dhylands commented 7 years ago

The v1.3 board looks like its going to be different from the next batch of boards (different LED driver, I2C port has moved, etc), so we should probably put a version number into the sensorweb board.

I'm assuming that your tree has the direction that the leaves know about things towards the root, and not the other way around.

fabricedesre commented 7 years ago

Yes, I tried to draw something similar to the output cargo tree

dhylands commented 6 years ago

Closing old PRs