The Pedigree Project
0.1
|
Implements the UART interface on the BeagleBoard. More...
#include <Serial.h>
Public Member Functions | |
virtual void | setBase (uintptr_t nBaseAddr) |
virtual char | read () |
virtual char | readNonBlock () |
virtual void | write (char c) |
virtual void | interrupt (size_t nInterruptNumber, InterruptState &state) |
Public Member Functions inherited from Serial | |
void | write (const char *c) |
Private Member Functions | |
void | softReset () |
Perform a software reset of this UART. More... | |
bool | setFifoDefaults () |
Reset the FIFOs and DMA to default values. More... | |
bool | configureProtocol () |
bool | disableFlowControl () |
Disables hardware flow control on the UART. More... | |
Private Attributes | |
volatile uint8_t * | m_Base |
MemoryRegion | m_BaseRegion |
Additional Inherited Members | |
Protected Member Functions inherited from InterruptHandler | |
virtual | ~InterruptHandler () |
Implements the UART interface on the BeagleBoard.
Definition at line 28 of file kernel/machine/arm_beagle/Serial.h.
|
private |
Configure the UART protocol to defaults - 115200 baud, 8 character bits, no parity, 1 stop bit. Enables the UART for output as a side effect.
Configure protocol, baud and interrupts
Definition at line 245 of file arm_beagle/Serial.cc.
|
private |
Disables hardware flow control on the UART.
Configure hardware flow control
Definition at line 302 of file arm_beagle/Serial.cc.
|
virtual |
Called when the handler is registered with the interrupt manager and the interrupt occurred
[in] | nInterruptNumber | the interrupt number |
[in] | state | reference to the state before the interrupt |
Implements InterruptHandler.
Definition at line 78 of file arm_beagle/Serial.cc.
|
virtual |
Implements Serial.
Definition at line 33 of file arm_beagle/Serial.cc.
References PhysicalMemoryManager::continuous, InterruptManager::instance(), PhysicalMemoryManager::instance(), VirtualAddressSpace::KernelMode, InterruptManager::registerInterruptHandler(), and VirtualAddressSpace::Write.
|
private |
Reset the FIFOs and DMA to default values.
Configure FIFOs and DMA
Definition at line 185 of file arm_beagle/Serial.cc.
|
private |
Perform a software reset of this UART.
Reset the UART. Page 2677, section 17.5.1.1.1
Definition at line 170 of file arm_beagle/Serial.cc.
|
private |
Base address for MMIO
Definition at line 92 of file kernel/machine/arm_beagle/Serial.h.
|
private |
MemoryRegion for the MMIO base
Definition at line 95 of file kernel/machine/arm_beagle/Serial.h.