aboutsummaryrefslogtreecommitdiff
path: root/avr/uart.h
blob: adfc8840b7d0c3ae0b03801a821746538d81ba1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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