ECE 486 Support Libraries
usart.c File Reference

USART Initialization to stream printf() output back to the ST-LINK. More...

#include "stm32l4xx_hal.h"
#include "usart.h"

Go to the source code of this file.

Functions

void usart_init (void)
 USART Configuration to talk to ST-LINK. More...
 
void HAL_UART_MspInit (UART_HandleTypeDef *huart)
 

Variables

UART_HandleTypeDef UsartHandle
 

Detailed Description

USART Initialization to stream printf() output back to the ST-LINK.

Author
Hummels... really stolen from Sheaff.
Date
Jan 2016

ST-LINK V2 provides a serial port to the host computer, which is accessed through a serial connector configured here...

Definition in file usart.c.

Function Documentation

void HAL_UART_MspInit ( UART_HandleTypeDef *  huart)

Definition at line 38 of file usart.c.

void usart_init ( void  )

USART Configuration to talk to ST-LINK.

USART2 is initialized to comminicate with the STM debug IC, via our ouput pin PD5. (Standard settings - 115200 8N1)

Parameters
none
Returns
none

Definition at line 22 of file usart.c.

Variable Documentation

UART_HandleTypeDef UsartHandle

Definition at line 17 of file usart.c.