Skip to content

various missing includes #1289

@diggit

Description

@diggit

Hi,
I have stumbled on multiple missing includes.

  1. STM32 USB header
    https://github.com/modm-io/modm/blob/7badc7de80945518867c051fcbd8295677c46aeb/src/modm/platform/usb/stm32/usb.hpp.in

is calling RCC functions, but it is missing RCC include

#include <modm/platform/clock/rcc.hpp>

Also there is a literal _MHz in the static assert used, thus #include <modm/math/units.hpp> is also missing (and using namespace modm::literals;)

  1. iostream_chrono.hpp
    https://github.com/modm-io/modm/blob/develop/src/modm/io/iostream_chrono.hpp.in

uses IOStream functions but does not include proper header
#include <modm/io/iostream.hpp>

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