BeRTOS
Defines | Enumerations
ser_xmega.h File Reference

Low-level serial module for AVR XMEGA (interface). More...

#include <cfg/macros.h>
#include <cfg/compiler.h>

Go to the source code of this file.

Defines

#define SERRF_RXFIFOOVERRUN   BV(0)
 Rx FIFO buffer overrun.
#define SERRF_RXTIMEOUT   BV(5)
 Receive timeout.
#define SERRF_TXTIMEOUT   BV(6)
 Transmit timeout.
#define SERRF_RXSROVERRUN   BV(3)
 Rx shift register overrun.
#define SERRF_FRAMEERROR   BV(4)
 Stop bit missing.
#define SERRF_PARITYERROR   BV(2)
 Parity error.
#define SERRF_NOISEERROR   0
 Unsupported.

Enumerations

enum  { , SER_CNT }

Detailed Description

Low-level serial module for AVR XMEGA (interface).

This file is heavily inspired by the AVR implementation for BeRTOS, but uses a different approach for implementing the different debug ports, by using the USART_t structs.

Author:
Onno <developer@gorgoz.org>

Definition in file ser_xmega.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
SER_CNT 

Number of serial ports.

Definition at line 71 of file ser_xmega.h.