void stm32_boardinitialize(void) { /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function * stm32_spiinitialize() has been brought into the link. */ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3) if (stm32_spiinitialize) { stm32_spiinitialize(); } #endif /* Initialize USB if the 1) USB device controller is in the configuration and 2) * disabled, and 3) the weak function stm32_usbinitialize() has been brought * into the build. Presumeably either CONFIG_USBDEV is also selected. */ #ifdef CONFIG_STM32_USB if (stm32_usbinitialize) { stm32_usbinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif }
__END_DECLS /**************************************************************************** * Protected Functions ****************************************************************************/ /**************************************************************************** * Public Functions ****************************************************************************/ /************************************************************************************ * Name: stm32_boardinitialize * * Description: * All STM32 architectures must provide the following entry point. This entry point * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * ************************************************************************************/ __EXPORT void stm32_boardinitialize(void) { /* configure SPI interfaces */ stm32_spiinitialize(); /* configure LEDs (empty call to NuttX' ledinit) */ up_ledinit(); }
void lpc17_boardinitialize(void) { /* Enable +5V needed for CAN */ #if defined(CONFIG_LPC17_CAN1) || defined(CONFIG_LPC17_CAN2) lpc17_configgpio(NUCLEUS2G_5V_ENABLE); #else lpc17_configgpio(NUCLEUS2G_5V_DISABLE); #endif /* If UART0 is used, enabled the MAX232 driver */ #ifdef CONFIG_LPC17_UART0 lpc17_configgpio(NUCLEUS2G_232_ENABLE); #else lpc17_configgpio(NUCLEUS2G_232_POWERSAVE); #endif /* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the weak * function lpc17_sspinitialize() has been brought into the link. */ #if defined(CONFIG_LPC17_SSP0) || defined(CONFIG_LPC17_SSP1) if (lpc17_sspinitialize) { lpc17_sspinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif }
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); }
void stm32_boardinitialize(void) { /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function * stm32_spiinitialize() has been brought into the link. */ #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) if (stm32_spiinitialize) { stm32_spiinitialize(); } #endif /* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not * disabled, and 3) the weak function stm32_usbinitialize() has been brought * into the build. */ #if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB) if (stm32_usbinitialize) { stm32_usbinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif }
__EXPORT void stm32_boardinitialize(void) { /* configure SPI interfaces */ stm32_spiinitialize(); /* configure LEDs */ up_ledinit(); }
void up_boardinitialize(void) { /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif }
__END_DECLS /**************************************************************************** * Protected Functions ****************************************************************************/ /**************************************************************************** * Public Functions ****************************************************************************/ /************************************************************************************ * Name: stm32_boardinitialize * * Description: * All STM32 architectures must provide the following entry point. This entry point * is called early in the intitialization -- after all memory has been configured * and mapped but before any devices have been initialized. * ************************************************************************************/ __EXPORT void stm32_boardinitialize(void) { /* Hold power state */ board_pwr_init(0); /* TEMP ctrl Off (active high, init is clear) */ stm32_configgpio(GPIO_TEMP_CONT); /* Select 0 */ stm32_configgpio(GPIO_S0); stm32_configgpio(GPIO_S1); stm32_configgpio(GPIO_S2); /* Radio Off (active low, init is set) */ stm32_configgpio(GPIO_PCON_RADIO); /* configure always-on ADC pins */ stm32_configgpio(GPIO_ADC1_IN10); /* configure SPI interfaces */ stm32_spiinitialize(); /* configure LEDs (empty call to NuttX' ledinit) */ up_ledinit(); }
__EXPORT void stm32_boardinitialize(void) { stm32_configgpio(GPIO_FORCE_BOOTLOADER); _bootloader_force_pin_callback(0, NULL); /* configure SPI interfaces */ stm32_spiinitialize(); /* configure LEDs */ up_ledinit(); }
void lpc313x_boardinitialize(void) { /* Initialize configured, external memory resources */ #ifdef CONFIG_LPC313X_EXTSDRAM lpc313x_meminitialize(); #endif /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function * lpc313x_spiinitialize() has been brought into the link. */ #if defined(CONFIG_LPC313X_SPI) if (lpc313x_spiinitialize) { lpc313x_spiinitialize(); } #endif /* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not * disabled, and 3) the weak function lpc313x_usbinitialize() has been brought * into the build. */ #if defined(CONFIG_USBDEV) && defined(CONFIG_LPC313X_USB) if (lpc313x_usbinitialize) { lpc313x_usbinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif /* Set up mass storage device to support on demand paging */ #if defined(CONFIG_PAGING) if (lpc313x_pginitialize) { lpc313x_pginitialize(); } #endif }
void sam_boardinitialize(void) { /* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function * sam_spiinitialize() has been brought into the link. */ #ifdef CONFIG_SAM34_SPI0 if (sam_spiinitialize) { sam_spiinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif }
void lpc17_boardinitialize(void) { /* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the weak * function lpc17_sspinitialize() has been brought into the link. */ #if defined(CONFIG_LPC17_SSP0) || defined(CONFIG_LPC17_SSP1) if (lpc17_sspinitialize) { lpc17_sspinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif }
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 }
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 }
void lpc17_boardinitialize(void) { /* Initialize the EMC, SDRAM, NOR FLASH, and NAND FLASH */ #ifdef CONFIG_LPC17_EMC lpc17_emcinitialize(); #ifdef CONFIG_ARCH_EXTDRAM open1788_sdram_initialize(); #endif #ifdef CONFIG_ARCH_EXTNOR open1788_nor_initialize(); #endif #ifdef CONFIG_ARCH_EXTNAND open1788_nand_initialize(); #endif #endif /* Configure SSP chip selects if 1) at least one SSP is enabled, and 2) the weak * function open1788_sspinitialize() has been brought into the link. */ #if defined(CONFIG_LPC17_SSP0) || defined(CONFIG_LPC17_SSP1) || defined(CONFIG_LPC17_SSP2) if (open1788_sspinitialize) { open1788_sspinitialize(); } #endif /* Configure on-board LEDs if LED support has been selected. */ #ifdef CONFIG_ARCH_LEDS up_ledinit(); #endif /* Configure the LCD GPIOs if LCD support has been selected. */ #ifdef CONFIG_LPC17_LCD open1788_lcd_initialize(); #endif }
__EXPORT void kinetis_boardinitialize(void) { /* configure LEDs */ up_ledinit(); }
__END_DECLS /**************************************************************************** * Protected Functions ****************************************************************************/ #if defined(CONFIG_FAT_DMAMEMORY) /**************************************************************************** * Public Functions ****************************************************************************/ #else # define dma_alloc_init() #endif /************************************************************************************ * Name: stm32_boardinitialize * * Description: * All STM32 architectures must provide the following entry point. This entry point * is called early in the initialization -- after all memory has been configured * and mapped but before any devices have been initialized. * ************************************************************************************/ __EXPORT void stm32_boardinitialize(void) { /* configure SPI interfaces */ stm32_spiinitialize(); /* configure LEDs */ up_ledinit(); }