Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
uart_arch.c File Reference

Handling of UART hardware for STM32. More...

#include "mcu_periph/uart.h"
#include "mcu_periph/gpio.h"
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/usart.h>
#include <libopencm3/cm3/nvic.h>
#include "std.h"
#include <BOARD_CONFIG>
+ Include dependency graph for uart_arch.c:

Go to the source code of this file.

Functions

void uart_periph_set_baudrate (struct uart_periph *p, uint32_t baud)
 
void uart_periph_set_mode (struct uart_periph *p, bool_t tx_enabled, bool_t rx_enabled, bool_t hw_flow_control)
 
void uart_transmit (struct uart_periph *p, uint8_t data)
 
static void usart_isr (struct uart_periph *p)
 
static void usart_enable_irq (u8 IRQn)
 

Detailed Description

Handling of UART hardware for STM32.

Definition in file uart_arch.c.

Function Documentation

void uart_periph_set_baudrate ( struct uart_periph p,
uint32_t  baud 
)

Definition at line 42 of file uart_arch.c.

References uart_periph::reg_addr, uart_disable_interrupts(), uart_enable_interrupts(), and uart_set_baudrate().

+ Here is the call graph for this function:

void uart_periph_set_mode ( struct uart_periph p,
bool_t  tx_enabled,
bool_t  rx_enabled,
bool_t  hw_flow_control 
)

Definition at line 64 of file uart_arch.c.

References uart_periph::reg_addr.

void uart_transmit ( struct uart_periph p,
uint8_t  data 
)
static void usart_enable_irq ( u8  IRQn)
inlinestatic

Definition at line 152 of file uart_arch.c.