CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
uart_control.h
Go to the documentation of this file.
1#ifndef INCLUDE_GUARD__UART_HANDLER_H
2#define INCLUDE_GUARD__UART_HANDLER_H
3
4#include "stm32l4xx_hal.h"
5
6#include <stdint.h>
7
8uint8_t UART_set_baud_rate(UART_HandleTypeDef *port_handle, uint32_t new_baud_rate);
9
10UART_HandleTypeDef *UART_get_port_handle_by_name(const char port_name[]);
11
12#endif // INCLUDE_GUARD__UART_HANDLER_H
UART_HandleTypeDef * UART_get_port_handle_by_name(const char port_name[])
Get the UART port handle by its name.
Definition uart_control.c:38
uint8_t UART_set_baud_rate(UART_HandleTypeDef *port_handle, uint32_t new_baud_rate)
Set the STM32 UART peripheral's baud rate to a different value.
Definition uart_control.c:11