1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 19:40:31 +03:00

marking some static timer lists const.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@388 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-08-25 15:12:12 +00:00
parent 003c2a91c5
commit f9b48925fa

View file

@ -62,11 +62,11 @@ const timerHardware_t timerHardware[] = {
#define MAX_TIMERS 4 // TIM1..TIM4 #define MAX_TIMERS 4 // TIM1..TIM4
#define CC_CHANNELS_PER_TIMER 4 // TIM_Channel_1..4 #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 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 TIM_Channel_1, TIM_Channel_2, TIM_Channel_3, TIM_Channel_4
}; };