/** * This function will initial STM32 board. */ void rt_hw_board_init(void) { /* NVIC Configuration */ NVIC_Configuration(); /* Configure the SysTick */ SysTick_Config( SystemCoreClock / RT_TICK_PER_SECOND ); //SysTick_Configuration(); #if STM32_EXT_SRAM EXT_SRAM_Configuration(); #endif rt_hw_usart_init(); #ifdef RT_USING_CONSOLE rt_console_set_device(RT_CONSOLE_DEVICE_NAME); #endif #ifdef RT_USING_COMPONENTS_INIT rt_components_board_init(); #endif stm32_hw_pin_init(); ports_initial(); }
/** * This function will initial STM32 board. */ void rt_hw_board_init() { RCC_Configuration(); GPIO_Configuration(); exti_config(); /* mark by David */ Exti_Pvd_Init(); NVIC_Configuration(); /* Configure the SysTick */ SysTick_Config( SystemCoreClock / RT_TICK_PER_SECOND ); #if STM32_EXT_SRAM EXT_SRAM_Configuration(); #endif rt_hw_usart_init(); rt_console_set_device(CONSOLE_DEVICE); spi_config(); #if 1==USE_TO_7INCH_LCD FSMC_LCD_Init(); #elif 1==STM32_USE_FSMC_NOR_MUX //sys_fsmc_nor_mux_config(); #elif 1==STM32_USE_FSMC_NOR_MUX2LCD lcd_fsmc_nor_mux_config(); #endif #if USE_STM32_IWDG iwdg_init(); #endif // led_on(LED_PORTX, LED3_PIN); }
/** * This function will initial STM32 board. */ void rt_hw_board_init() { RCC_Configuration(); GPIO_Configuration(); #if STM32_EXT_SRAM EXT_SRAM_Configuration(); #endif NVIC_Configuration(); /* Configure the SysTick */ SysTick_Config( SystemCoreClock / RT_TICK_PER_SECOND ); /* rand */ #if ENABLE_RAND ADC_Configration(); ADC_Channel_Config(); #endif rt_hw_usart_init(); rt_console_set_device(CONSOLE_DEVICE); board_debug(("func:%s(), line:%d\n", __FUNCTION__, __LINE__)); exti_config(); /* mark by David */ spi_config(); board_debug(("func:%s(), line:%d\n", __FUNCTION__, __LINE__)); #if RT_USING_ADE7880 #if ADE7880_USE_SPI ade7880_spi_cfg(); #else ade7880_i2c_cfg(); start_7880_i2c(); ade7880_spi_withdma_hsdccfg(); dma_configuration_spi1_rx(); #endif #endif board_debug(("func:%s(), line:%d\n", __FUNCTION__, __LINE__)); #if USE_STM32_IWDG iwdg_init(); #endif board_debug(("func:%s(), line:%d\n", __FUNCTION__, __LINE__)); return; }
/** * This function will initial STM32 board. */ void rt_hw_board_init() { /* NVIC Configuration */ NVIC_Configuration(); /* Configure the SysTick */ SysTick_Configuration(); #if STM32_EXT_SRAM EXT_SRAM_Configuration(); #endif rt_hw_console_init(); }
/** * This function will initial STM32 board. */ void rt_hw_board_init() { /* NVIC Configuration */ NVIC_Configuration(); /* Configure the SysTick */ SysTick_Config( SystemCoreClock / RT_TICK_PER_SECOND ); #if STM32_EXT_SRAM EXT_SRAM_Configuration(); #endif rt_hw_usart_init(); rt_console_set_device(CONSOLE_DEVICE); }
/** * This function will initial Tower board. */ void rt_hw_board_init() { /* NVIC Configuration */ NVIC_Configuration(); /* Configure the SysTick */ SysTick_Configuration(); //#if K20D_EXT_SRAM EXT_SRAM_Configuration(); //#endif rt_hw_uart_init(); #ifdef RT_USING_CONSOLE rt_console_set_device(CONSOLE_DEVICE); #endif }