mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
cc3d leds: move pin remapping into led definition
The LED driver supports GPIO remapping. No need to do the remapping outside of the LED definition.
This commit is contained in:
parent
dff43d5156
commit
b97aba834a
@ -67,7 +67,6 @@ void PIOS_Board_Init(void) {
|
|||||||
PIOS_LED_Init(&pios_led_cfg_cc);
|
PIOS_LED_Init(&pios_led_cfg_cc);
|
||||||
break;
|
break;
|
||||||
case 0x02: // Revision 2
|
case 0x02: // Revision 2
|
||||||
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
|
|
||||||
PIOS_LED_Init(&pios_led_cfg_cc3d);
|
PIOS_LED_Init(&pios_led_cfg_cc3d);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -161,7 +161,6 @@ void PIOS_Board_Init(void) {
|
|||||||
PIOS_LED_Init(&pios_led_cfg_cc);
|
PIOS_LED_Init(&pios_led_cfg_cc);
|
||||||
break;
|
break;
|
||||||
case 0x02: // Revision 2
|
case 0x02: // Revision 2
|
||||||
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
|
|
||||||
PIOS_LED_Init(&pios_led_cfg_cc3d);
|
PIOS_LED_Init(&pios_led_cfg_cc3d);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -59,6 +59,7 @@ static const struct pios_led pios_leds_cc3d[] = {
|
|||||||
.GPIO_Speed = GPIO_Speed_50MHz,
|
.GPIO_Speed = GPIO_Speed_50MHz,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
.remap = GPIO_Remap_SWJ_JTAGDisable,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user