Hanna
Sourcecode Batteriemanagementsystem
Makrodefinitionen | Aufzählungen | Funktionen
usartx.h-Dateireferenz

Standardheader und Auswahl der Übertragungsgeschwindigkeit. Mehr ...

#include <stdio.h>
Include-Abhängigkeitsdiagramm für usartx.h:
Dieser Graph zeigt, welche Datei direkt oder indirekt diese Datei enthält:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define BAUD_A   ((BSEL_USART) & 0xFF)
 
#define BAUD_B   (((BSEL_USART >> 8) | (BSCALE << 4)) & 0xFF)
 
#define BAUD_SETTINGS
 
#define BAUDRATE_USART   115200
 
#define BSCALE   0xF9
 
#define BSEL_USART   2094
 
#define DOUBLESPEED   0 /* 1 = 2x clock, 0 = 1x clock */
 
#define ERR_FILENO   2
 
#define EXTERN   extern
 
#define IN_FILENO   0
 
#define NUM_USARTS   6
 
#define OUT_FILENO   1
 

Aufzählungen

enum  usart_ids {
  eUSARTC0 = 0, eUSARTC1, eUSARTD0, eUSARTD1,
  eUSARTE0, eUSARTF0
}
 

Funktionen

void USART_Connect (int usartnum, int streamsel)
 
void USART_Init (uint8_t usartnum, uint8_t bauda, uint8_t baudb)
 

Ausführliche Beschreibung

Standardheader und Auswahl der Übertragungsgeschwindigkeit.

Autor
Karl Lunt
Anpassungen Hanna Burggraf
Datum
03.04.2011 / 03.02.2016
                $Revision: 351 $
                $Date: 2016-03-19 23:27:55 +0100 (Sa, 19 Mrz 2016) $

These routines provide support for stream I/O and can be hooked into stdin, stdout, and stderr.

This module provides support for all seven USARTs on the ATxmega256a3 and related devices. For details on using these routines, consult the associated usartx.h header file. http://www.seanet.com/~karllunt/atxmegasource.html

Definiert in Datei usartx.h.