mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Note: the pwm_common driver has a dependency on the main failsafe code, the solution is probably to move some of the code into rx_pwm.
29 lines
447 B
C
29 lines
447 B
C
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "runtime_config.h"
|
|
|
|
flags_t f;
|
|
uint8_t rcOptions[CHECKBOX_ITEM_COUNT];
|
|
|
|
static uint32_t enabledSensors = 0;
|
|
|
|
bool sensors(uint32_t mask)
|
|
{
|
|
return enabledSensors & mask;
|
|
}
|
|
|
|
void sensorsSet(uint32_t mask)
|
|
{
|
|
enabledSensors |= mask;
|
|
}
|
|
|
|
void sensorsClear(uint32_t mask)
|
|
{
|
|
enabledSensors &= ~(mask);
|
|
}
|
|
|
|
uint32_t sensorsMask(void)
|
|
{
|
|
return enabledSensors;
|
|
}
|