ECU/GSM/dist/src/USART_program.c
void USART_voidSendChar(u8 Channel, u16 letter) {
	volatile UART_REG * selectedChannel = USART1;

	switch(Channel) {
		case 1:
			;
			break;
		case 2:
			selectedChannel = USART2;
			break;
		case 3:
			selectedChannel = USART3;
			break;
		case 4:
			selectedChannel = USART4;
			break;
		case 5:
			selectedChannel = USART5;
			break;
		default:
			return;
	}

	USART_voidSend(selectedChannel, letter);
}
/**
  * @brief  Sends a character
  * @param  Channel:	Number of the UART Channel to use.
  * 					Can be USART_CHANNEL_x where x is from 1 to 5
  * @param	letter: ASCII letter
  * @retval void
  */
@brief  Sends a character
@param  Channel:    Number of the UART Channel to use.
Can be USART_CHANNEL_x where x is from 1 to 5
@param      letter: ASCII letter
@retval void
@brief Sends a character @param Channel : Number of the UART Channel to use . Can be USART_CHANNEL_x where x is from 1 to 5 @param letter : ASCII letter @retval void
void USART_voidSendChar(u8 Channel, u16 letter) {
	volatile UART_REG * selectedChannel = USART1;
	switch(Channel) {
		case 1:
			;
			break;
		case 2:
			selectedChannel = USART2;
			break;
		case 3:
			selectedChannel = USART3;
			break;
		case 4:
			selectedChannel = USART4;
			break;
		case 5:
			selectedChannel = USART5;
			break;
		default:
			return;
	}
	USART_voidSend(selectedChannel, letter);
}
void USART_voidSendChar ( u8 Channel , u16 letter ) { volatile UART_REG * selectedChannel = USART1 ; switch ( Channel ) { case 1 : ; break ; case 2 : selectedChannel = USART2 ; break ; case 3 : selectedChannel = USART3 ; break ; case 4 : selectedChannel = USART4 ; break ; case 5 : selectedChannel = USART5 ; break ; default : return ; } USART_voidSend ( selectedChannel , letter ) ; }
@brief  Sends a character
 @param  Channel:    Number of the UART Channel to use.
@brief Sends a character @param Channel : Number of the UART Channel to use .