Skip to content

Commit 2e43f72

Browse files
feat: add a macro: get_timer_instance
1 parent 84de08b commit 2e43f72

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Inc/HALAL/Services/Time/TimerWrapper.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
#include "stm32h7xx_hal.h"
1919

20+
#define get_timer_instance(board, timer_type) \
21+
ST_LIB::TimerWrapper<timer_type>(board::instance_of<timer_type>())
22+
2023
namespace ST_LIB {
2124

2225
template<const TimerDomain::Timer &dev>

0 commit comments

Comments
 (0)