Beispiel #1
0
void lm3s_boardinitialize(void)
{
  /* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
   * lm3s_ssiinitialize() has been brought into the link.
   */

#if !defined(CONFIG_SSI0_DISABLE)
  if (lm3s_ssiinitialize)
    {
      lm3s_ssiinitialize();
    }
#endif

  /* Configure on-board LEDs if LED support has been selected. */

#ifdef CONFIG_ARCH_LEDS
  up_ledinit();
#endif

  /* Configure serial transciever */
  
  lm3s_configgpio(XCVR_INV_GPIO);
  lm3s_configgpio(XCVR_ENA_GPIO);
  lm3s_configgpio(XCVR_ON_GPIO);
  lm3s_configgpio(XCVR_OFF_GPIO);
}
Beispiel #2
0
void lm3s_boardinitialize(void)
{
  /* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
   * lm3s_ssiinitialize() has been brought into the link.
   */

/* The Eagle100 microSD CS is on SSI0 */

#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
  if (lm3s_ssiinitialize)
    {
      lm3s_ssiinitialize();
    }
#endif

  /* Configure on-board LEDs if LED support has been selected. */

#ifdef CONFIG_ARCH_LEDS
  up_ledinit();
#endif
}