Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
CC32xxUart.cxx File Reference
#include <algorithm>
#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/interrupt.h"
#include "driverlib/prcm.h"
#include "driverlib/utils.h"
#include "freertos/tc_ioctl.h"
#include "executor/Notifiable.hxx"
#include "CC32xxUart.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.
 

Variables

static CC32xxUartinstances [2] = {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 the UART class prototype for CC32xx.

Author
Stuart W. Baker
Date
15 March 2016

Definition in file CC32xxUart.cxx.

Function Documentation

◆ uart0_interrupt_handler()

void uart0_interrupt_handler ( void  )

UART0 interrupt handler.

Definition at line 363 of file CC32xxUart.cxx.

◆ uart1_interrupt_handler()

void uart1_interrupt_handler ( void  )

UART1 interrupt handler.

Definition at line 373 of file CC32xxUart.cxx.

Variable Documentation

◆ instances

CC32xxUart* instances[2] = {NULL}
static

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

Definition at line 51 of file CC32xxUart.cxx.

◆ isr_lock

Atomic isr_lock
static

Critical section lock between ISR and ioctl.

Definition at line 53 of file CC32xxUart.cxx.