Exemplo n.º 1
0
void kl_ledinit(void)
{
  led_dumpgpio("Before configuration");
  //kl_configgpio(GPIO_LED_R);
  //kl_configgpio(GPIO_LED_G);
  //kl_configgpio(GPIO_LED_B);
  led_dumpgpio("After configuration");
}
Exemplo n.º 2
0
void up_ledinit(void)
{
  /* Configure all LED GPIO lines */

  led_dumpgpio("up_ledinit() Entry)");

  hcs12_configgpio(NE64BADGE_LED1);
  hcs12_configgpio(NE64BADGE_LED2);

  led_dumpgpio("up_ledinit() Exit");
}
Exemplo n.º 3
0
void board_led_initialize(void)
{
  /* Configure all LED GPIO lines */

  led_dumpgpio("board_led_initialize() Entry)");

  hcs12_configgpio(NE64BADGE_LED1);
  hcs12_configgpio(NE64BADGE_LED2);

  led_dumpgpio("board_led_initialize() Exit");
}
Exemplo n.º 4
0
void board_autoled_initialize(void)
{
  leddbg("Initializing\n");

  /* Configure Port D, Bit 0 as an output, initial value=OFF */

  led_dumpgpio("board_autoled_initialize before tiva_configgpio()");
  tiva_configgpio(LED_GPIO);
  led_dumpgpio("board_autoled_initialize after tiva_configgpio()");
  g_nest = 0;
}
Exemplo n.º 5
0
void board_led_initialize(void)
{
    /* Configure all LED GPIO lines */

    led_dumpgpio("board_led_initialize() Entry)");

    lpc17_configgpio(LINCOLN60_LED1);
    lpc17_configgpio(LINCOLN60_LED2);

    led_dumpgpio("board_led_initialize() Exit");
}
Exemplo n.º 6
0
void board_led_initialize(void)
{
  leddbg("Initializing\n");

  /* Configure Port E, Bit 1 as an output, initial value=OFF */

  led_dumpgpio("board_led_initialize before lm_configgpio()");
  lm_configgpio(LED_GPIO);
  led_dumpgpio("board_led_initialize after lm_configgpio()");
  g_nest = 0;
}
Exemplo n.º 7
0
void up_ledinit(void)
{
  leddbg("Initializing\n");

  /* Configure Port E, Bit 1 as an output, initial value=OFF */

  led_dumpgpio("up_ledinit before lm3s_configgpio()");
  lm3s_configgpio(LED_GPIO);
  led_dumpgpio("up_ledinit after lm3s_configgpio()");
  g_nest = 0;
}
Exemplo n.º 8
0
void tm4c_ledinit(void)
{
  leddbg("Initializing\n");

  /* Configure Port E, Bit 1 as an output, initial value=OFF */

  led_dumpgpio("tm4c_ledinit before tiva_configgpio()");
  tiva_configgpio(GPIO_LED_R);
  tiva_configgpio(GPIO_LED_G);
  tiva_configgpio(GPIO_LED_B);
  led_dumpgpio("tm4c_ledinit after tiva_configgpio()");
}
Exemplo n.º 9
0
void up_ledinit(void)    /* Name when invoked via up_boot.c */
#endif
{
  /* Configure all LED GPIO lines */

  led_dumpgpio("up_ledinit() Entry)");

  lpc17_configgpio(LPC1766STK_LED1);
  lpc17_configgpio(LPC1766STK_LED2);

  led_dumpgpio("up_ledinit() Exit");
}
Exemplo n.º 10
0
void up_ledinit(void)
{
  /* Configure all LED GPIO lines */

  led_dumpgpio("up_ledinit() Entry)");

  lpc17_configgpio(MBED_LED1);
  lpc17_configgpio(MBED_LED2);
  lpc17_configgpio(MBED_LED3);
  lpc17_configgpio(MBED_LED4);

  led_dumpgpio("up_ledinit() Exit");
}
Exemplo n.º 11
0
void board_led_initialize(void)
{
  /* Configure all LED GPIO lines */

  led_dumpgpio("board_led_initialize() Entry)");

  lpc17_configgpio(NUCLEUS2G_LED1_A);
  lpc17_configgpio(NUCLEUS2G_LED1_B);
  lpc17_configgpio(NUCLEUS2G_LED2_A);
  lpc17_configgpio(NUCLEUS2G_LED2_B);
  lpc17_configgpio(NUCLEUS2G_HEARTBEAT);
  lpc17_configgpio(NUCLEUS2G_EXTRA_LED);

  led_dumpgpio("board_led_initialize() Exit");
}
Exemplo n.º 12
0
void board_autoled_on(int led)
{
  switch (led)
    {
      case LED_STARTED:
      case LED_HEAPALLOCATE:
      default:
        break;

      case LED_INIRQ:
      case LED_SIGNAL:
      case LED_ASSERTION:
      case LED_PANIC:
        g_nest++;
      case LED_IRQSENABLED:
      case LED_STACKCREATED:
        led_dumpgpio("board_autoled_on: before tiva_gpiowrite()");
        tiva_gpiowrite(LED_GPIO, false);
        led_dumpgpio("board_autoled_on: after tiva_gpiowrite()");
        break;
    }
}
Exemplo n.º 13
0
void up_ledon(int led)
{
    switch (led)
    {
    case LED_STARTED:
    case LED_HEAPALLOCATE:
    default:
        break;

    case LED_INIRQ:
    case LED_SIGNAL:
    case LED_ASSERTION:
    case LED_PANIC:
        g_nest++;
    case LED_IRQSENABLED:
    case LED_STACKCREATED:
        led_dumpgpio("up_ledon: before lm3s_gpiowrite()");
        lm3s_gpiowrite(LED1_GPIO, false);
        led_dumpgpio("up_ledon: after lm3s_gpiowrite()");
        break;
    }
}
Exemplo n.º 14
0
void board_autoled_off(int led)
{
  switch (led)
    {
      case LED_IRQSENABLED:
      case LED_STACKCREATED:
      case LED_STARTED:
      case LED_HEAPALLOCATE:
      default:
        break;

      case LED_INIRQ:
      case LED_SIGNAL:
      case LED_ASSERTION:
      case LED_PANIC:
        if (--g_nest <= 0)
          {
            led_dumpgpio("board_autoled_off: before tiva_gpiowrite()");
            tiva_gpiowrite(LED_GPIO, true);
            led_dumpgpio("board_autoled_off: after tiva_gpiowrite()");
          }
        break;
    }
}
Exemplo n.º 15
0
void up_ledoff(int led)
{
    switch (led)
    {
    case LED_IRQSENABLED:
    case LED_STACKCREATED:
    case LED_STARTED:
    case LED_HEAPALLOCATE:
    default:
        break;

    case LED_INIRQ:
    case LED_SIGNAL:
    case LED_ASSERTION:
    case LED_PANIC:
        if (--g_nest <= 0)
        {
            led_dumpgpio("up_ledoff: before lm3s_gpiowrite()");
            lm3s_gpiowrite(LED1_GPIO, true);
            led_dumpgpio("up_ledoff: after lm3s_gpiowrite()");
        }
        break;
    }
}
Exemplo n.º 16
0
void nuc_led_initialize(void)
{
  led_dumpgpio("Before configuration");
  nuc_configgpio(GPIO_LED);
  led_dumpgpio("After configuration");
}