|
Open Model Railroad Network (OpenMRN)
|
#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 CC32xxUart * | instances [2] = {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 the UART class prototype for CC32xx.
Definition in file CC32xxUart.cxx.
| void uart0_interrupt_handler | ( | void | ) |
UART0 interrupt handler.
Definition at line 363 of file CC32xxUart.cxx.
| void uart1_interrupt_handler | ( | void | ) |
UART1 interrupt handler.
Definition at line 373 of file CC32xxUart.cxx.
|
static |
Instance pointers help us get context from the interrupt handler(s)
Definition at line 51 of file CC32xxUart.cxx.
|
static |
Critical section lock between ISR and ioctl.
Definition at line 53 of file CC32xxUart.cxx.