From 9874e95e49e61d3fcac2e66242b88e105b1891e6 Mon Sep 17 00:00:00 2001 From: tomoyuki yamanaka Date: Mon, 13 Jul 2015 18:04:13 +0900 Subject: [PATCH] Fix bug of CONST declaration in PWM driver. In PWM, modify CONST declaration of the table is not enough. --- .../targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c b/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c index 3c15331afa..1564888738 100644 --- a/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c +++ b/libraries/mbed/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c @@ -66,7 +66,7 @@ static const PinMap PinMap_PWM[] = { {NC , NC , 0} }; -static PWMType PORT[] = { +static const PWMType PORT[] = { PWM2E, // PWM0_PIN PWM2C, // PWM1_PIN PWM2G, // PWM2_PIN @@ -83,7 +83,7 @@ static PWMType PORT[] = { PWM2F, // PWM13_PIN }; -static MTU2_PWMType MTU2_PORT[] = { +static const MTU2_PWMType MTU2_PORT[] = { TIOC2A, // MTU2_PWM0_PIN TIOC1A, // MTU2_PWM1_PIN TIOC4A, // MTU2_PWM2_PIN