mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Refactor TIMER/DMA framework (#3833)
* TIM/DMA abstraction * Migrage F7 TIM/DMA to HAL_LL * Refactor timers to use conventional HZ * Refactor PWM ourput code to use highest possible resolution * Remove TIMER_OUTPUT_ENABLED * Temporary disable SPRACINGF3NEO due to out of RAM
This commit is contained in:
parent
3b1b1bfc81
commit
78bc53f3ad
196 changed files with 2780 additions and 3164 deletions
|
@ -28,12 +28,21 @@
|
|||
#define CONCAT_HELPER(x,y) x ## y
|
||||
#define CONCAT(x,y) CONCAT_HELPER(x, y)
|
||||
|
||||
#define CONCAT4_HELPER(x, y, z, w) x ## y ## z ## w
|
||||
#define CONCAT4(x, y, z, w) CONCAT4_HELPER(x, y, z, w)
|
||||
|
||||
#define STR_HELPER(x) #x
|
||||
#define STR(x) STR_HELPER(x)
|
||||
|
||||
#define EXPAND_I(x) x
|
||||
#define EXPAND(x) EXPAND_I(x)
|
||||
|
||||
// Expand all argumens and call macro with them. When expansion of some argument contains ',', it will be passed as multiple arguments
|
||||
// #define TAKE3(_1,_2,_3) CONCAT3(_1,_2,_3)
|
||||
// #define MULTI2 A,B
|
||||
// PP_CALL(TAKE3, MULTI2, C) expands to ABC
|
||||
#define PP_CALL(macro, ...) macro(__VA_ARGS__)
|
||||
|
||||
#if !defined(UNUSED)
|
||||
#define UNUSED(x) (void)(x)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue