From f9b48925fa226a8806cce3f9e30e999e7eea9e5a Mon Sep 17 00:00:00 2001 From: "timecop@gmail.com" Date: Sun, 25 Aug 2013 15:12:12 +0000 Subject: [PATCH] marking some static timer lists const. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@388 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61 --- src/drv_timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drv_timer.c b/src/drv_timer.c index a33cb469de..e778e2c658 100644 --- a/src/drv_timer.c +++ b/src/drv_timer.c @@ -62,11 +62,11 @@ const timerHardware_t timerHardware[] = { #define MAX_TIMERS 4 // TIM1..TIM4 #define CC_CHANNELS_PER_TIMER 4 // TIM_Channel_1..4 -static TIM_TypeDef *timers[MAX_TIMERS] = { +static const TIM_TypeDef *timers[MAX_TIMERS] = { TIM1, TIM2, TIM3, TIM4 }; -static uint8_t channels[CC_CHANNELS_PER_TIMER] = { +static const uint8_t channels[CC_CHANNELS_PER_TIMER] = { TIM_Channel_1, TIM_Channel_2, TIM_Channel_3, TIM_Channel_4 };