File nut/arch/avr/dev/usartavr.c

Included in: nut/arch/avr/dev/usart0avr.c

Included Files


Preprocessor definitions

#define ASCII_XON 0x11

#define ASCII_XOFF 0x13

#define XON_PENDING 0x10

#define XOFF_PENDING 0x20

#define XOFF_SENT 0x40

#define XOFF_RCVD 0x80


Local Variables

rx_errors
static ureg_t rx_errors
Used in: AvrUsartGetStatus()  
  AvrUsartRxComplete()  
  AvrUsartSetStatus()  

flow_control
static ureg_t flow_control

Used in: AvrUsartGetFlowControl()  
  AvrUsartGetStatus()  
  AvrUsartRxComplete()  
  AvrUsartRxStart()  
  AvrUsartSetFlowControl()  
  AvrUsartSetStatus()  
  AvrUsartTxEmpty()  

tx_aframe
static ureg_t tx_aframe

Used in: AvrUsartGetStatus()  
  AvrUsartSetStatus()  
  AvrUsartTxEmpty()  

Local Function AvrUsartDeinit()

static int AvrUsartDeinit ( void )
Calls: NutRegisterIrqHandler()

Local Function AvrUsartDisable()

static void AvrUsartDisable ( void )
Calls: NutDelay()
Called by: AvrUsartSetDataBits() nut/arch/avr/dev/usartavr.c
  AvrUsartSetSpeed() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartEnable()

static void AvrUsartEnable ( void )
Called by: AvrUsartSetDataBits() nut/arch/avr/dev/usartavr.c
  AvrUsartSetSpeed() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartGetClockMode()

static uint8_t AvrUsartGetClockMode ( void )
Called by: AvrUsartSetClockMode() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartGetDataBits()

static uint8_t AvrUsartGetDataBits ( void )
Called by: AvrUsartSetDataBits() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartGetFlowControl()

static uint32_t AvrUsartGetFlowControl ( void )
Called by: AvrUsartSetFlowControl() nut/arch/avr/dev/usartavr.c
References Variables: flow_control nut/arch/avr/dev/usartavr.c

Local Function AvrUsartGetParity()

static uint8_t AvrUsartGetParity ( void )
Called by: AvrUsartSetParity() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartGetSpeed()

static uint32_t AvrUsartGetSpeed ( void )
Calls: NutGetCpuClock()

Local Function AvrUsartGetStatus()

static uint32_t AvrUsartGetStatus ( void )
Called by: AvrUsartSetStatus() nut/arch/avr/dev/usartavr.c
References Variables: flow_control nut/arch/avr/dev/usartavr.c
  rx_errors nut/arch/avr/dev/usartavr.c
  tx_aframe nut/arch/avr/dev/usartavr.c

Local Function AvrUsartGetStopBits()

static uint8_t AvrUsartGetStopBits ( void )
Called by: AvrUsartSetStopBits() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartInit()

static int AvrUsartInit ( void )
Calls: NutRegisterIrqHandler()
References Functions: AvrUsartRxComplete() nut/arch/avr/dev/usartavr.c
  AvrUsartTxEmpty() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartRxComplete()

static void AvrUsartRxComplete ( void* arg )
Used in: AvrUsartInit() nut/arch/avr/dev/usartavr.c
References Variables: flow_control nut/arch/avr/dev/usartavr.c
  rx_errors nut/arch/avr/dev/usartavr.c

Local Function AvrUsartRxStart()

static void AvrUsartRxStart ( void )
References Variables: flow_control nut/arch/avr/dev/usartavr.c

Local Function AvrUsartSetClockMode()

static int AvrUsartSetClockMode ( uint8_t mode )
Calls: AvrUsartGetClockMode() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartSetDataBits()

static int AvrUsartSetDataBits ( uint8_t bits )
Calls: AvrUsartDisable() nut/arch/avr/dev/usartavr.c
  AvrUsartEnable() nut/arch/avr/dev/usartavr.c
  AvrUsartGetDataBits() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartSetFlowControl()

static int AvrUsartSetFlowControl ( uint32_t flags )
Calls: AvrUsartGetFlowControl() nut/arch/avr/dev/usartavr.c
References Variables: flow_control nut/arch/avr/dev/usartavr.c

Local Function AvrUsartSetParity()

static int AvrUsartSetParity ( uint8_t mode )
Calls: AvrUsartGetParity() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartSetSpeed()

static int AvrUsartSetSpeed ( uint32_t rate )
Calls: AvrUsartDisable() nut/arch/avr/dev/usartavr.c
  AvrUsartEnable() nut/arch/avr/dev/usartavr.c
  NutGetCpuClock()

Local Function AvrUsartSetStatus()

static int AvrUsartSetStatus ( uint32_t flags )
Calls: AvrUsartGetStatus() nut/arch/avr/dev/usartavr.c
References Variables: flow_control nut/arch/avr/dev/usartavr.c
  rx_errors nut/arch/avr/dev/usartavr.c
  tx_aframe nut/arch/avr/dev/usartavr.c

Local Function AvrUsartSetStopBits()

static int AvrUsartSetStopBits ( uint8_t bits )
Calls: AvrUsartGetStopBits() nut/arch/avr/dev/usartavr.c

Local Function AvrUsartTxEmpty()

static void AvrUsartTxEmpty ( void* arg )
Used in: AvrUsartInit() nut/arch/avr/dev/usartavr.c
References Variables: flow_control nut/arch/avr/dev/usartavr.c
  tx_aframe nut/arch/avr/dev/usartavr.c

Local Function AvrUsartTxStart()

static void AvrUsartTxStart ( void )