Esempio n. 1
0
/******************************************//**
*Initializes USART3. Initializes USART3 with default settings and desired speed.
*@param speed The speed in bauds;
*
********************************************/
void USART3_Init(uint16_t speed) {
	enableGPIO_RCC(GPIOC);
	USART_Enable_RCC(USART3);
	USART_ConfGPIO(USART3);
	USART_Conf(USART3, speed);
	USART_ConfIRQ_RX(USART3);
}
Esempio n. 2
0
void UserInit(void)
{
  RCC_Conf();
  GPIO_Conf();
  SPI_Conf();
  TIMER_Conf();
  PWM_Conf();
  USART_Conf();
  I2C_Conf();
  NVIC_Conf();

  DelayInit(72);
}