From 1ce9210c45bf03429e259c383003a32eda509f4d Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sat, 24 Aug 2013 11:14:38 +0100 Subject: [PATCH] Ensuring some const data is in flash not SRAM. --- src/drv_pwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drv_pwm.c b/src/drv_pwm.c index fd17efba3..0929a92ae 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,