From 01376de3e51ebe9e7f8f39974db9a8d8c5c2b840 Mon Sep 17 00:00:00 2001 From: "timecop@gmail.com" Date: Sat, 24 Aug 2013 10:20:55 +0000 Subject: [PATCH] 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 --- src/config.c | 2 +- src/drv_pwm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 12556fca3..9e88f6f30 100755 --- a/src/config.c +++ b/src/config.c @@ -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); diff --git a/src/drv_pwm.c b/src/drv_pwm.c index a03c7dfbd..4bf6e9a0d 100755 --- a/src/drv_pwm.c +++ b/src/drv_pwm.c @@ -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,