Ejemplo n.º 1
0
Archivo: hw_init.c Proyecto: ADTL/AFGUI
//----------------------------------------------------------------------------
unsigned int HardwareInit(void)
{
	unsigned int ret;
	ret = 0;
	RCC_Configuration();
//	DMA_cfg();
//	GPIO_Configuration();
	if (0 != RTC_cfg()) ret |= 1;
//	ADC_cfg();
//	NVIC_cfg();
	SysTick_cfg();
	TP_SPI_Config();
//	Beeper_Init();
// 	lcdInit();

	return ret;
}
Ejemplo n.º 2
0
void Initial_MCU(void)
{	
	
	RCC_Configuration();	// Enable Clock
	GPIO_Configuration();	// Define Indicator LED
	/*usart*/
	DMA1_Channel4_Configuration();
	/*i2c*/
	DMA1_Channel7_Configuration();
 	
	MPU6050_I2C_Init();
	MPU6050_Initialize();

	USART_Config(USART1, 921600) ;  //for display on computer
	
	
	SysTick_cfg();

	NVIC_Configuration();


}