mirror of https://github.com/ARMmbed/mbed-os.git
Fix bug of CONST declaration in PWM driver.
In PWM, modify CONST declaration of the table is not enough.pull/1233/head
parent
59e6fbad5e
commit
9874e95e49
|
|
@ -66,7 +66,7 @@ static const PinMap PinMap_PWM[] = {
|
||||||
{NC , NC , 0}
|
{NC , NC , 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
static PWMType PORT[] = {
|
static const PWMType PORT[] = {
|
||||||
PWM2E, // PWM0_PIN
|
PWM2E, // PWM0_PIN
|
||||||
PWM2C, // PWM1_PIN
|
PWM2C, // PWM1_PIN
|
||||||
PWM2G, // PWM2_PIN
|
PWM2G, // PWM2_PIN
|
||||||
|
|
@ -83,7 +83,7 @@ static PWMType PORT[] = {
|
||||||
PWM2F, // PWM13_PIN
|
PWM2F, // PWM13_PIN
|
||||||
};
|
};
|
||||||
|
|
||||||
static MTU2_PWMType MTU2_PORT[] = {
|
static const MTU2_PWMType MTU2_PORT[] = {
|
||||||
TIOC2A, // MTU2_PWM0_PIN
|
TIOC2A, // MTU2_PWM0_PIN
|
||||||
TIOC1A, // MTU2_PWM1_PIN
|
TIOC1A, // MTU2_PWM1_PIN
|
||||||
TIOC4A, // MTU2_PWM2_PIN
|
TIOC4A, // MTU2_PWM2_PIN
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue