ECE 486 Support Libraries
usart.h File Reference

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

#include "stm32l4xx_hal.h"

Go to the source code of this file.

Functions

void usart_init (void)
 USART Configuration to talk to ST-LINK. More...
 

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.h.

Function Documentation

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.