forked from dhansel/Altair8800
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoft_uart.cpp
64 lines (55 loc) · 1.93 KB
/
soft_uart.cpp
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
** soft_uart library
** Copyright (C) 2015-2018
**
** Antonio C. Domínguez Brito <[email protected]>
** División de Robótica y Oceanografía Computacional <www.roc.siani.es>
** and Departamento de Informática y Sistemas <www.dis.ulpgc.es>
** Universidad de Las Palmas de Gran Canaria (ULPGC) <www.ulpgc.es>
**
** This file is part of the soft_uart library.
** The soft_uart library is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or any
** later version.
**
** The soft_uart library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
** Public License for more details.
**
** You should have received a copy (COPYING file) of the GNU General Public
** License along with the soft_uart library.
** If not, see: <http://www.gnu.org/licenses/>.
**/
/*
* File: soft_uart.cpp
* Description: This is an implementation of a software UART (Universal
* Asynchronous Receiver Transmitter) library for the Arduino Due's Atmel
* ATSAM3X8E micro-controller. (implementation file)
* Date: June 22nd, 2015
* Author: Antonio C. Dominguez-Brito <[email protected]>
* ROC-SIANI - Universidad de Las Palmas de Gran Canaria - Spain
*/
#ifdef __SAM3X8E__
#include "soft_uart.h"
namespace arduino_due
{
namespace soft_uart
{
tc_timer_data
tc_timer_table[static_cast<uint32_t>(timer_ids::TIMER_IDS)]=
{
{TC0,0,TC0_IRQn},
{TC0,1,TC1_IRQn},
{TC0,2,TC2_IRQn},
{TC1,0,TC3_IRQn},
{TC1,1,TC4_IRQn},
{TC1,2,TC5_IRQn},
{TC2,0,TC6_IRQn},
{TC2,1,TC7_IRQn},
{TC2,2,TC8_IRQn},
};
}
}
#endif