1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +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:
Stacey Sheldon 2012-05-23 00:12:51 -04:00
parent dff43d5156
commit b97aba834a
3 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,6 @@ void PIOS_Board_Init(void) {
PIOS_LED_Init(&pios_led_cfg_cc);
break;
case 0x02: // Revision 2
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
PIOS_LED_Init(&pios_led_cfg_cc3d);
break;
default:

View File

@ -161,7 +161,6 @@ void PIOS_Board_Init(void) {
PIOS_LED_Init(&pios_led_cfg_cc);
break;
case 0x02: // Revision 2
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
PIOS_LED_Init(&pios_led_cfg_cc3d);
break;
default:

View File

@ -59,6 +59,7 @@ static const struct pios_led pios_leds_cc3d[] = {
.GPIO_Speed = GPIO_Speed_50MHz,
},
},
.remap = GPIO_Remap_SWJ_JTAGDisable,
},
};