#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include "stm32f10x_conf.h"
#include "drv_serial.h"
#include "drv_gpio.h"
#include "drv_uart.h"
Go to the source code of this file.
Functions | |
void | DMA1_Channel4_IRQHandler (void) |
bool | isUartTransmitBufferEmpty (serialPort_t *instance) |
uartPort_t * | serialUSART1 (uint32_t baudRate, portMode_t mode) |
serialPort_t * | uartOpen (USART_TypeDef *USARTx, serialReceiveCallbackPtr callback, uint32_t baudRate, portMode_t mode) |
uint8_t | uartRead (serialPort_t *instance) |
void | uartSetBaudRate (serialPort_t *instance, uint32_t baudRate) |
void | uartSetMode (serialPort_t *s, portMode_t mode) |
static void | uartStartTxDMA (uartPort_t *s) |
uint8_t | uartTotalBytesWaiting (serialPort_t *instance) |
void | uartWrite (serialPort_t *instance, uint8_t ch) |
void | USART1_IRQHandler (void) |
Variables | |
static uartPort_t | uartPort1 |
const struct serialPortVTable | uartVTable [] |
void DMA1_Channel4_IRQHandler | ( | void | ) |
Definition at line 274 of file drv_uart.c.
bool isUartTransmitBufferEmpty | ( | serialPort_t * | instance | ) |
Definition at line 220 of file drv_uart.c.
uartPort_t* serialUSART1 | ( | uint32_t | baudRate, |
portMode_t | mode | ||
) |
Definition at line 36 of file drv_uart.c.
serialPort_t* uartOpen | ( | USART_TypeDef * | USARTx, |
serialReceiveCallbackPtr | callback, | ||
uint32_t | baudRate, | ||
portMode_t | mode | ||
) |
Definition at line 80 of file drv_uart.c.
uint8_t uartRead | ( | serialPort_t * | instance | ) |
Definition at line 229 of file drv_uart.c.
void uartSetBaudRate | ( | serialPort_t * | instance, |
uint32_t | baudRate | ||
) |
Definition at line 167 of file drv_uart.c.
void uartSetMode | ( | serialPort_t * | s, |
portMode_t | mode | ||
) |
Definition at line 187 of file drv_uart.c.
|
static |
Definition at line 195 of file drv_uart.c.
uint8_t uartTotalBytesWaiting | ( | serialPort_t * | instance | ) |
Definition at line 209 of file drv_uart.c.
void uartWrite | ( | serialPort_t * | instance, |
uint8_t | ch | ||
) |
Definition at line 246 of file drv_uart.c.
void USART1_IRQHandler | ( | void | ) |
Definition at line 287 of file drv_uart.c.
|
static |
Definition at line 33 of file drv_uart.c.
const struct serialPortVTable uartVTable[] |
Definition at line 260 of file drv_uart.c.