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); }
void weak_function lm_ssiinitialize(void) { /* Configure the SPI-based microSD CS GPIO */ ssi_dumpgpio("lm_ssiinitialize() Entry)"); lm_configgpio(SDCCS_GPIO); #ifdef CONFIG_NX_LCDDRIVER lm_configgpio(OLEDCS_GPIO); #endif ssi_dumpgpio("lm_ssiinitialize() Exit"); }
void up_ledinit(void) { leddbg("Initializing\n"); /* Configure Port F, Bit 2 as an output, initial value=OFF */ led_dumpgpio("up_ledinit before lm_configgpio()"); lm_configgpio(LED0_GPIO); lm_configgpio(LED1_GPIO); led_dumpgpio("up_ledinit after lm_configgpio()"); g_nest = 0; }
void weak_function lm_ssiinitialize(void) { /* Configure the SPI CS GPIO */ ssi_dumpgpio("lm_ssiinitialize() Entry)"); lm_configgpio(SSICS_GPIO); ssi_dumpgpio("lm_ssiinitialize() Exit"); }
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; }