Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
TivaUart.cxx File Reference
#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 TivaUartinstances [8] = {NULL}
 Instance pointers help us get context from the interrupt handler(s)
 
static Atomic isr_lock
 Critical section lock between ISR and ioctl.
 

Detailed Description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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.

Author
Stuart W. Baker
Date
6 May 2014

Definition in file TivaUart.cxx.

Function Documentation

◆ uart0_interrupt_handler()

void uart0_interrupt_handler ( void  )

UART0 interrupt handler.

Definition at line 382 of file TivaUart.cxx.

◆ uart1_interrupt_handler()

void uart1_interrupt_handler ( void  )

UART1 interrupt handler.

Definition at line 392 of file TivaUart.cxx.

◆ uart2_interrupt_handler()

void uart2_interrupt_handler ( void  )

UART2 interrupt handler.

Definition at line 402 of file TivaUart.cxx.

◆ uart3_interrupt_handler()

void uart3_interrupt_handler ( void  )

UART3 interrupt handler.

Definition at line 412 of file TivaUart.cxx.

◆ uart4_interrupt_handler()

void uart4_interrupt_handler ( void  )

UART4 interrupt handler.

Definition at line 421 of file TivaUart.cxx.

◆ uart5_interrupt_handler()

void uart5_interrupt_handler ( void  )

UART5 interrupt handler.

Definition at line 431 of file TivaUart.cxx.

◆ uart6_interrupt_handler()

void uart6_interrupt_handler ( void  )

UART6 interrupt handler.

Definition at line 441 of file TivaUart.cxx.

◆ uart7_interrupt_handler()

void uart7_interrupt_handler ( void  )

UART7 interrupt handler.

Definition at line 451 of file TivaUart.cxx.

Variable Documentation

◆ instances

TivaUart* instances[8] = {NULL}
static

Instance pointers help us get context from the interrupt handler(s)

Definition at line 52 of file TivaUart.cxx.

◆ isr_lock

Atomic isr_lock
static

Critical section lock between ISR and ioctl.

Definition at line 55 of file TivaUart.cxx.