コード例 #1
0
ファイル: USART_API.c プロジェクト: olaldiko/CowTek-POPBL4
/******************************************//**
*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);
}
コード例 #2
0
ファイル: tools.c プロジェクト: SoildFaker/stm32-quadrocopter
void UserInit(void)
{
  RCC_Conf();
  GPIO_Conf();
  SPI_Conf();
  TIMER_Conf();
  PWM_Conf();
  USART_Conf();
  I2C_Conf();
  NVIC_Conf();

  DelayInit(72);
}