mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +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:
parent
003c2a91c5
commit
f9b48925fa
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue