You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/core/dev/MCUTimer.hpp
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,11 @@ enum class MCUTimer {
45
45
46
46
/**
47
47
* Gets the corresponding HAL TIM_TypeDef* for each MCUTimer
48
+
* This function is inlined because of a couple of reasons.
49
+
* 1. It is in a header file, and functions in header files should be inlined. https://clang.llvm.org/extra/clang-tidy/checks/misc/definitions-in-headers.html
50
+
* 2. When this function is not inlined, F3 targets will not build. This is because PWMF3xx requires its own
51
+
* `timerInstance` function that requires an MCUTimer import. Since manager.hpp also includes MCUTimer.hpp, and has
52
+
* generally broken imports (see [FWT-255] https://rit-evt.atlassian.net/browse/FWT-255).
48
53
*
49
54
* @param mcuTimer MCUTimer of which to get the HAL equivalent
0 commit comments