Skip to content

[doc] architecture and platform modules #729

Answered by salkinium
dhebbeker asked this question in Q&A
Discussion options

You must be logged in to vote

Everything that's can be implemented on every platform is declared in architecture.

The current STM32 timer classes aren't much of an interface, they wrap the registers in a nicer way. It should be called modm::platform::Timer6Hal, to be consistent with for example the modm::platform::UsartHalN, which is then used to implement both modm::platform::UartN to satisfy the modm::Uart interface and modm::platform::UartSpiMasterN for modm::SpiMaster.
Note that you can pass the classes implementing modm::Uart, modm::SpiMaster and modm::I2cMaster to any driver in :driver, since they use that common interface regardless of the target.

In that sense, modm::platform::Timer6Hal could be used to implem…

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by salkinium
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #352 on September 29, 2021 14:49.