Cleanup variables that can be made static.

This commit is contained in:
Dominic Clifton 2014-05-10 17:43:07 +01:00
parent 7b37bb8525
commit be3a4c9944
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@
#include "typeconversion.h"
#endif
serialPort_t *printfSerialPort;
static serialPort_t *printfSerialPort;
#ifdef REQUIRE_CC_ARM_PRINTF_SUPPORT

View File

@ -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];

View File

@ -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)
{

View File

@ -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)
{