Ejemplo n.º 1
0
void pic32mx_boardinitialize(void)
{
  /* Configure SPI chip selects if 1) at least one SPI is enabled, and 2) the weak
   * function pic32mx_spiinitialize() has been brought into the link.
   */

#if defined(CONFIG_PIC32MX_SPI1) || defined(CONFIG_PIC32MX_SPI2) || \
    defined(CONFIG_PIC32MX_SPI3) || defined(CONFIG_PIC32MX_SPI4)
  if (pic32mx_spiinitialize)
    {
      pic32mx_spiinitialize();
    }
#endif

/* Initialize the LCD.  The LCD initialization function should be called early in the
 * boot sequence -- even if the LCD is not enabled.  In that case we should
 * at a minimum at least disable the LCD backlight.
 */

  pic32mx_lcdinitialize();

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

#ifdef CONFIG_ARCH_LEDS
  pic32mx_ledinit();
#endif
}
Ejemplo n.º 2
0
void pic32mx_boardinitialize(void)
{
  /* Configure SPI chip selects if 1) at least one SPI is enabled, and 2) the weak
   * function pic32mx_spiinitialize() has been brought into the link.
   */

#if defined(CONFIG_PIC32MX_SPI2)
  if (pic32mx_spiinitialize)
    {
      pic32mx_spiinitialize();
    }
#endif

  /* Configure the mini-B PHY on the Sure PIC32MX board for the USB device */

#if defined(CONFIG_PIC32MX_USBDEV)
  if (pic32mx_usbdevinitialize)
    {
      pic32mx_usbdevinitialize();
    }
#endif

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

#ifdef CONFIG_ARCH_LEDS
  pic32mx_ledinit();
#endif
}
Ejemplo n.º 3
0
void pic32mx_boardinitialize(void)
{
  /* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the weak
   * function pic32mx_spiinitialize() has been brought into the link.
   */

#if defined(CONFIG_PIC32MX_SPI1) || defined(CONFIG_PIC32MX_SPI2)
  if (pic32mx_spiinitialize)
    {
      pic32mx_spiinitialize();
    }
#endif

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

#ifdef CONFIG_ARCH_LEDS
  pic32mx_ledinit();
#endif
}