コード例 #1
0
ファイル: bspstarthooks.c プロジェクト: AlexShiLucky/rtems
BSP_START_TEXT_SECTION void bsp_start_hook_1(void)
{
  stop_dma_activities();
  bsp_start_copy_sections();
  setup_mmu_and_cache();
  setup_uarts();
  setup_timer();
  bsp_start_clear_bss();
}
コード例 #2
0
ファイル: board.c プロジェクト: Adrizcorp/ARM_SOC_FPGA
void board_init_uart_f(void)
{
	int uart_ids = 0;	/* bit mask of which UART ids to enable */

#ifdef CONFIG_TEGRA_ENABLE_UARTA
	uart_ids |= UARTA;
#endif
#ifdef CONFIG_TEGRA_ENABLE_UARTB
	uart_ids |= UARTB;
#endif
#ifdef CONFIG_TEGRA_ENABLE_UARTD
	uart_ids |= UARTD;
#endif
	setup_uarts(uart_ids);
}
コード例 #3
0
ファイル: main.c プロジェクト: doxter94/ZBS_02_Forwarder
int main(void) {
	//***********************************************
	// Inicializace
	//***********************************************
	Chip_IOCON_Init(LPC_IOCON);
	Chip_GPIO_Init(LPC_GPIO);

	enet_init();
	eeprom_init();
	setup_uarts();

	//***********************************************
	// Hlavni smycka
	//***********************************************

	while (1) {

		eeprom_write();
		ethernet_transmit();

	}

	return EXIT_FAILURE;
}