Fix bug of CONST declaration in PWM driver.

In PWM, modify CONST declaration of the table is not enough.
pull/1233/head
tomoyuki yamanaka 2015-07-13 18:04:13 +09:00
parent 59e6fbad5e
commit 9874e95e49
1 changed files with 2 additions and 2 deletions

View File

@ -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