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:
parent
5bc7b097b3
commit
abcf085474
2 changed files with 4 additions and 4 deletions
|
@ -29,10 +29,6 @@
|
||||||
|
|
||||||
#include "timerup.h"
|
#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);
|
PG_REGISTER_ARRAY_WITH_RESET_FN(timerUpConfig_t, HARDWARE_TIMER_DEFINITION_COUNT, timerUpConfig, PG_TIMER_UP_CONFIG, 0);
|
||||||
|
|
||||||
void pgResetFn_timerUpConfig(timerUpConfig_t *config)
|
void pgResetFn_timerUpConfig(timerUpConfig_t *config)
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
|
|
||||||
#if defined(USE_TIMER_MGMT) && defined(USE_TIMER_UP_CONFIG)
|
#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 {
|
typedef struct timerUpConfig_s {
|
||||||
int8_t dmaopt;
|
int8_t dmaopt;
|
||||||
} timerUpConfig_t;
|
} timerUpConfig_t;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue