|
Open Model Railroad Network (OpenMRN)
|
#include <algorithm>#include <stdint.h>#include <tc_ioctl.h>#include "inc/hw_types.h"#include "inc/hw_memmap.h"#include "inc/hw_ints.h"#include "inc/hw_uart.h"#include "driverlib/rom.h"#include "driverlib/rom_map.h"#include "driverlib/uart.h"#include "driverlib/interrupt.h"#include "driverlib/sysctl.h"#include "TivaDev.hxx"Go to the source code of this file.
Functions | |
| void | uart0_interrupt_handler (void) |
| UART0 interrupt handler. | |
| void | uart1_interrupt_handler (void) |
| UART1 interrupt handler. | |
| void | uart2_interrupt_handler (void) |
| UART2 interrupt handler. | |
| void | uart3_interrupt_handler (void) |
| UART3 interrupt handler. | |
| void | uart4_interrupt_handler (void) |
| UART4 interrupt handler. | |
| void | uart5_interrupt_handler (void) |
| UART5 interrupt handler. | |
| void | uart6_interrupt_handler (void) |
| UART6 interrupt handler. | |
| void | uart7_interrupt_handler (void) |
| UART7 interrupt handler. | |
Variables | |
| static TivaUart * | instances [8] = {NULL} |
| Instance pointers help us get context from the interrupt handler(s) | |
| static Atomic | isr_lock |
| Critical section lock between ISR and ioctl. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This file implements a UART device driver layer specific to Tivaware.
Definition in file TivaUart.cxx.
| void uart0_interrupt_handler | ( | void | ) |
UART0 interrupt handler.
Definition at line 382 of file TivaUart.cxx.
| void uart1_interrupt_handler | ( | void | ) |
UART1 interrupt handler.
Definition at line 392 of file TivaUart.cxx.
| void uart2_interrupt_handler | ( | void | ) |
UART2 interrupt handler.
Definition at line 402 of file TivaUart.cxx.
| void uart3_interrupt_handler | ( | void | ) |
UART3 interrupt handler.
Definition at line 412 of file TivaUart.cxx.
| void uart4_interrupt_handler | ( | void | ) |
UART4 interrupt handler.
Definition at line 421 of file TivaUart.cxx.
| void uart5_interrupt_handler | ( | void | ) |
UART5 interrupt handler.
Definition at line 431 of file TivaUart.cxx.
| void uart6_interrupt_handler | ( | void | ) |
UART6 interrupt handler.
Definition at line 441 of file TivaUart.cxx.
| void uart7_interrupt_handler | ( | void | ) |
UART7 interrupt handler.
Definition at line 451 of file TivaUart.cxx.
|
static |
Instance pointers help us get context from the interrupt handler(s)
Definition at line 52 of file TivaUart.cxx.
|
static |
Critical section lock between ISR and ioctl.
Definition at line 55 of file TivaUart.cxx.