X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fstmf0%2Fao_led_stmf0.c;h=63593aff039c6153da468cc4bc154451621fc581;hp=1564535e8ec0a61c6c5df27f5347186d7d2d36c0;hb=a6baf04bae3fe6a6b3da2f456419732ffeb4d056;hpb=2cdb1f30c49ba460b0850d23ba9c85e0336af290 diff --git a/src/stmf0/ao_led_stmf0.c b/src/stmf0/ao_led_stmf0.c index 1564535e..63593aff 100644 --- a/src/stmf0/ao_led_stmf0.c +++ b/src/stmf0/ao_led_stmf0.c @@ -58,21 +58,6 @@ ao_led_set(AO_LED_TYPE colors) ao_led_on(on); } -void -ao_led_toggle(AO_LED_TYPE colors) -{ -#ifdef LED_PORT - LED_PORT->odr ^= (colors & LEDS_AVAILABLE); -#else -#ifdef LED_PORT_0 - LED_PORT_0->odr ^= ((colors & LEDS_AVAILABLE) & LED_PORT_0_MASK) << LED_PORT_0_SHIFT; -#endif -#ifdef LED_PORT_1 - LED_PORT_1->odr ^= ((colors & LEDS_AVAILABLE) & LED_PORT_1_MASK) << LED_PORT_1_SHIFT; -#endif -#endif -} - void ao_led_for(AO_LED_TYPE colors, AO_TICK_TYPE ticks) {