1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +03:00

Move static assertion to timerup.h

This commit is contained in:
kedeng 2025-07-08 13:08:21 +08:00
parent 5bc7b097b3
commit abcf085474
2 changed files with 4 additions and 4 deletions

View file

@ -29,10 +29,6 @@
#include "timerup.h"
#if defined(USED_TIMERS) && defined(TIMUP_TIMERS)
STATIC_ASSERT((~USED_TIMERS & TIMUP_TIMERS) == 0, "All TIMUP timers must be used");
#endif
PG_REGISTER_ARRAY_WITH_RESET_FN(timerUpConfig_t, HARDWARE_TIMER_DEFINITION_COUNT, timerUpConfig, PG_TIMER_UP_CONFIG, 0);
void pgResetFn_timerUpConfig(timerUpConfig_t *config)

View file

@ -29,6 +29,10 @@
#if defined(USE_TIMER_MGMT) && defined(USE_TIMER_UP_CONFIG)
#if defined(USED_TIMERS) && defined(TIMUP_TIMERS)
STATIC_ASSERT((~USED_TIMERS & TIMUP_TIMERS) == 0, "All TIMUP timers must be used");
#endif
typedef struct timerUpConfig_s {
int8_t dmaopt;
} timerUpConfig_t;