ESOS32
ESOSOn32-bitProcessors
Macros | Functions | Variables
esos_stm32l4_rs232.h File Reference

This file contains macros, prototypes, and definitions for STM32L4xxx Family specific communications on ESOS32. More...

#include "esos.h"
#include "esos_comm.h"
#include "esos_stm32l4.h"
Include dependency graph for esos_stm32l4_rs232.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USART_CONSOLE   USART2
 
#define IS_CHAR_READY_UART1()
 
#define IS_TRANSMIT_BUFFER_FULL_UART1()
 
#define IS_TRANSMIT_COMPLETE_UART1()
 

Functions

void __esos_hw_signal_start_tx (void)
 
void __esos_hw_signal_stop_tx (void)
 
void __esos_hw_PutUint8 (uint8_t u8_c)
 
void __esos_hw_PutString (uint8_t *psz_in)
 
uint8_t __esos_hw_GetUint8 (void)
 
void __esos_configUART1 (uint32_t u32_baudRate)
 
void __esos_hw_InitCommSystem (void)
 

Variables

CBUFFER__pst_CB_Rx
 
CBUFFER__pst_CB_Tx
 

Detailed Description

This file contains macros, prototypes, and definitions for STM32L4xxx Family specific communications on ESOS32.

This file contains routines which configure and use the UARTs on the ST32L4. We rely on the HAL to do lots of the heavy lifting here. Probably should move to the HAL_LL_xxx functions to improve performance.

Definition in file esos_stm32l4_rs232.h.

Macro Definition Documentation

◆ IS_CHAR_READY_UART1

#define IS_CHAR_READY_UART1 ( )

Determine if a character is available in the UART's receive buffer.

Returns
True (1) if character is available, 0 if not.

Definition at line 88 of file esos_stm32l4_rs232.h.

◆ IS_TRANSMIT_BUFFER_FULL_UART1

#define IS_TRANSMIT_BUFFER_FULL_UART1 ( )

Determine if a the transmit buffer is full.

Returns
True (1) if the transmit buffer if full, false (0) if not.

Definition at line 94 of file esos_stm32l4_rs232.h.

◆ IS_TRANSMIT_COMPLETE_UART1

#define IS_TRANSMIT_COMPLETE_UART1 ( )

Determines if all characters placed in the UART have been sent. Returns 1 if the last transmission has completed, or 0 if a transmission is in progress or queued in the transmit buffer.

Returns
True (1) if the last transmission has completed, 0 if not.

Definition at line 101 of file esos_stm32l4_rs232.h.

◆ USART_CONSOLE

#define USART_CONSOLE   USART2

ESOS is built with a single communications channel using UART at 57.6kbaud 8/N/1

Only uncomment the line below if you want ESOS to build the UART with a "non-standard" baudrate. Used by configUART1 to set up the UART.

 #define DEFAULT_BAUDRATE  9600

Definition at line 80 of file esos_stm32l4_rs232.h.