Skip to content

Restructure examples #359

@rleh

Description

@rleh

Problems / possibilities for improvement

  • Boards modules contain lots of duplicate code.
  • Only 33 dev boards are currently supported.
    • Little effort to support all 47 ST Nucleo boards.
    • Little effort to support Arduino derivates.
  • One example only run one one single dev board without modifications.
  • Examples are hard to use for on-target software testing.
  • Many examples are hardly documented.

Restructuring modm examples

  • Unify board modules: Generate (e.g.) all nucleo board form a single lbuild module.
  • Extend board.hpp: Add "default" Spi, I2c, Uart, Gpio, ... (interfaces)
    • Should (if possible) use same pins on same form-factor dev boards.
    • Availability and number of interfaces as lbuild module properties on which the examples are then dependent.
    • Document interfaces similar to mbed
  • Generated (automated from CI) all examples into https://github.com/modm-io/modm-examples to keep the first steps with modm easy.
  • Make examples usable for automated integration tests, e.g. with a PASS/FAIL in the serial log.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions