Exemple #1
0
int jtag3ctrl_bus_init(void * arg)
{
	DCC_LOG(LOG_TRACE, ".......");

	/* Configure memory controller ... */
	stm32f_fsmc_init();
	/* Configure external interrupt ... */
	stm32f_exti_init(STM32_GPIOD, 6, EXTI_EDGE_RISING);
	/* Initialize clock output */
	stm32f_mco2_init();

	return 0;	
}
Exemple #2
0
void external_bus_init(void)
{
	/* Configure memory controller ... */
	stm32f_fsmc_init();
		
	/* Configure external interrupt ... */
	stm32f_exti_init(FPGA_EXTI, EXTI_EDGE_RISING);

	/* Initialize clock output */
	stm32f_mco2_init();

	/* Enable clock output */
	stm32f_mco2_enable();
}