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

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

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

#ifdef CONFIG_ARCH_LEDS
  board_led_initialize();
#endif

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

#if !defined(CONFIG_SSI0_DISABLE)  || !defined(CONFIG_SSI1_DISABLE)
    if (lm_ssiinitialize)
    {
        lm_ssiinitialize();
    }
#endif

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

#ifdef CONFIG_ARCH_LEDS
    up_ledinit();
#endif
}
Beispiel #3
0
void tiva_boardinitialize(void)
{
	/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
	 * lm_ssiinitialize() has been brought into the link.
	 */

	/* The LM3S6965 Eval Kit microSD CS and OLED are on SSI0 (Duh! There is no SSI1) */

#if defined(CONFIG_TIVA_SSI0)	/* || defined(CONFIG_TIVA_SSI1) */
	if (lm_ssiinitialize) {
		lm_ssiinitialize();
	}
#endif

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

#ifdef CONFIG_ARCH_LEDS
	board_led_initialize();
#endif
}