Cleanup variables that can be made static.
This commit is contained in:
parent
7b37bb8525
commit
be3a4c9944
|
@ -45,7 +45,7 @@
|
|||
#include "typeconversion.h"
|
||||
#endif
|
||||
|
||||
serialPort_t *printfSerialPort;
|
||||
static serialPort_t *printfSerialPort;
|
||||
|
||||
#ifdef REQUIRE_CC_ARM_PRINTF_SUPPORT
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ typedef struct {
|
|||
pwmWriteFuncPtr pwmWritePtr;
|
||||
} pwmOutputPort_t;
|
||||
|
||||
pwmOutputPort_t pwmOutputPorts[MAX_PWM_OUTPUT_PORTS];
|
||||
static pwmOutputPort_t pwmOutputPorts[MAX_PWM_OUTPUT_PORTS];
|
||||
|
||||
static pwmOutputPort_t *motors[MAX_PWM_MOTORS];
|
||||
static pwmOutputPort_t *servos[MAX_PWM_SERVOS];
|
||||
|
|
|
@ -146,7 +146,7 @@ typedef struct timerConfig_s {
|
|||
uint8_t reference;
|
||||
} timerConfig_t;
|
||||
|
||||
timerConfig_t timerConfig[MAX_TIMERS * CC_CHANNELS_PER_TIMER];
|
||||
static timerConfig_t timerConfig[MAX_TIMERS * CC_CHANNELS_PER_TIMER];
|
||||
|
||||
static uint8_t lookupTimerIndex(const TIM_TypeDef *tim)
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ extern bool AccInflightCalibrationMeasurementDone;
|
|||
extern bool AccInflightCalibrationSavetoEEProm;
|
||||
extern bool AccInflightCalibrationActive;
|
||||
|
||||
int16_flightDynamicsTrims_t *accelerationTrims;
|
||||
static int16_flightDynamicsTrims_t *accelerationTrims;
|
||||
|
||||
void accSetCalibrationCycles(uint16_t calibrationCyclesRequired)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue