marking some more stuff const that shouldn't be changing. thx Hydra for the catch.
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@384 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
1441d46323
commit
01376de3e5
|
@ -13,7 +13,7 @@ master_t mcfg; // master config struct with data independent from profiles
|
|||
config_t cfg; // profile config struct
|
||||
const char rcChannelLetters[] = "AERT1234";
|
||||
|
||||
static uint8_t EEPROM_CONF_VERSION = 48;
|
||||
static const uint8_t EEPROM_CONF_VERSION = 48;
|
||||
static uint32_t enabledSensors = 0;
|
||||
static void resetConf(void);
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
typedef void pwmCallbackPtr(uint8_t port, uint16_t capture);
|
||||
|
||||
static pwmHardware_t timerHardware[] = {
|
||||
static const pwmHardware_t timerHardware[] = {
|
||||
{ TIM2, GPIOA, GPIO_Pin_0, TIM_Channel_1, TIM2_IRQn, 0, }, // PWM1
|
||||
{ TIM2, GPIOA, GPIO_Pin_1, TIM_Channel_2, TIM2_IRQn, 0, }, // PWM2
|
||||
{ TIM2, GPIOA, GPIO_Pin_2, TIM_Channel_3, TIM2_IRQn, 0, }, // PWM3
|
||||
|
@ -188,7 +188,7 @@ static const uint8_t airPWM[] = {
|
|||
0xFF
|
||||
};
|
||||
|
||||
static const uint8_t *hardwareMaps[] = {
|
||||
static const uint8_t * const hardwareMaps[] = {
|
||||
multiPWM,
|
||||
multiPPM,
|
||||
airPWM,
|
||||
|
|
Loading…
Reference in New Issue