snickerdoodle Platform Controller
firmware for STM32F0 platform controller
UART Definitions

Macros

#define SD_UART_ERROR_NONE   ((uint32_t)0x00)
 
#define SD_UART_ERROR_PARITY   ((uint32_t)0x01)
 
#define SD_UART_ERROR_FRAMING   ((uint32_t)0x02)
 
#define SD_UART_ERROR_NOISE   ((uint32_t)0x04)
 
#define SD_UART_ERROR_OVERRUN   ((uint32_t)0x08)
 
#define __SD_UART_ERROR_IT(__HANDLE__)   ((__HANDLE__)->Instance->ISR & ((uint32_t)0x0F))
 Check whether an error interrupt has occured. Checks the 4 LSBs of the interrupt and status register (ISR) to determine if the overrun, noise, framing or parity error flags have been set. More...
 
#define __SD_UART_CLEAR_ERROR_IT(__HANDLE__)   ((__HANDLE__)->Instance->ICR = ((uint32_t)0x0F))
 Clear error interrupts Clears the 4 LSBs of the interrupt flag clear register (ICR). More...
 

Detailed Description

Macro Definition Documentation

◆ __SD_UART_CLEAR_ERROR_IT

#define __SD_UART_CLEAR_ERROR_IT (   __HANDLE__)    ((__HANDLE__)->Instance->ICR = ((uint32_t)0x0F))

#include <Inc/sd_uart.h>

Clear error interrupts Clears the 4 LSBs of the interrupt flag clear register (ICR).

Parameters
__HANDLE__specifies the UART handle. This parameter can be UARTx where x: 1, 2, 3 or 4 to select the USART or UART peripheral. (datasheet: up to four USART/UARTs)
Return values
None

◆ __SD_UART_ERROR_IT

#define __SD_UART_ERROR_IT (   __HANDLE__)    ((__HANDLE__)->Instance->ISR & ((uint32_t)0x0F))

#include <Inc/sd_uart.h>

Check whether an error interrupt has occured. Checks the 4 LSBs of the interrupt and status register (ISR) to determine if the overrun, noise, framing or parity error flags have been set.

Parameters
__HANDLE__specifies the UART handle. This parameter can be UARTx where x: 1, 2, 3 or 4 to select the USART or UART peripheral. (datasheet: up to four USART/UARTs)
Return values
Thestate of the error flags IT (TRUE or FALSE).