ifdef Doxygen guard in SPI_Master - why??? #1158
Replies: 2 comments
-
Some of our interfaces are not "real", they are only there to document the signature of the implementation. However, some signatures are slightly different on different platforms, for example, on AVR we prefer to use smaller integers to pass arguments, since that reduces code size often quite significantly. In modern times, you would perhaps use C++20 concepts to define them with a bunch of platform specific type aliases. But when we started these interfaces, we didn't have concepts yet. |
Beta Was this translation helpful? Give feedback.
-
In addition to the answer above: The actual (platform-dependent) implementations of the SPI master is located in |
Beta Was this translation helpful? Give feedback.
-
modm/src/modm/architecture/interface/spi_master.hpp
Line 33 in f01fd0a
Why? What for? I am building a project, not a documentation. What for I need a doxygen here?
Beta Was this translation helpful? Give feedback.
All reactions