Browse Source

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
master
timecop@gmail.com 11 years ago
parent
commit
01376de3e5
  1. 2
      src/config.c
  2. 4
      src/drv_pwm.c

2
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);

4
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,

Loading…
Cancel
Save