![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
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... | |
#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).
__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) |
None |
#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.
__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) |
The | state of the error flags IT (TRUE or FALSE). |