diff options
| author | Otto Mattik <otto@mattik.org> | 2021-07-08 18:10:55 +0200 |
|---|---|---|
| committer | Otto Mattik <otto@mattik.org> | 2021-07-08 18:10:55 +0200 |
| commit | da34d97efb21719b2b332f8c60b2750d11bcde1f (patch) | |
| tree | 2de9fe89f6d79b8ebfcde64c5e86204e904aedf2 /avr/uart.h | |
| download | armen-a861fb554ced7709555d2d1b639c534e3f45a83f.tar.gz armen-a861fb554ced7709555d2d1b639c534e3f45a83f.zip | |
Diffstat (limited to 'avr/uart.h')
| -rw-r--r-- | avr/uart.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/avr/uart.h b/avr/uart.h new file mode 100644 index 0000000..adfc884 --- /dev/null +++ b/avr/uart.h @@ -0,0 +1,33 @@ +/************************************************************************/ +/* */ +/* File: avr/uart.h */ +/* Description: serial line device. */ +/* Version: 1.0 */ +/* Author: Otto Mattik */ +/* */ +/* (C)Copyright Otto Mattik 2014-2021. */ +/* */ +/* This file is a part of 'armen' (a tiny operating system). */ +/* 'armen' is distributed under the CeCILL-V2.1 licence. For more */ +/* details about this licence, please visit the website cecill.info */ +/* */ +/************************************************************************/ + +#ifndef _AVR_UART_H_ +#define _AVR_UART_H_ + + #if defined(__AVR_ATtiny84__)\ + || defined(__AVR_ATtiny85__) + #define ARMEN_UART_MAX 0 + #elif defined(__AVR_ATmega328P__) + #define ARMEN_UART_MAX 1 + #elif defined(__AVR_ATtiny841__)\ + || defined(__AVR_ATtiny1634__) + #define ARMEN_UART_MAX 2 + #elif defined(__AVR_ATmega2560__) + #define ARMEN_UART_MAX 4 + #else + #define ARMEN_UART_MAX 0 + #endif + +#endif |
