ECE 486 Support Libraries
usart.h
Go to the documentation of this file.
1 /*!
2  * @file
3  *
4  * @brief USART Initialization to stream printf() output back to the ST-LINK
5  *
6  * @author Hummels... really stolen from Sheaff.
7  *
8  * @date Jan 2016
9  *
10  * ST-LINK V2 provides a serial port to the host computer, which is accessed
11  * through a serial connector configured here...
12  */
13 
14 
15 
16 #ifndef USART_H
17 #define USART_H
18 
19 #include "stm32l4xx_hal.h"
20 
21 /*!
22  * @brief USART Configuration to talk to ST-LINK
23  *
24  * USART2 is initialized to comminicate with the STM debug IC, via
25  * our ouput pin PD5. (Standard settings - 115200 8N1)
26  *
27  * @param none
28  * @returns none
29  */
30 void usart_init(void);
31 
32 // USART device
33 extern UART_HandleTypeDef UsartHandle;
34 
35 #endif // USART_H
void usart_init(void)
USART Configuration to talk to ST-LINK.
Definition: usart.c:22
UART_HandleTypeDef UsartHandle
Definition: usart.c:17