LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
suart_api.c File Reference
#include "suart_api.h"
#include "suart_pru_regs.h"
#include "pru.h"
#include "omapl_suart_board.h"
#include "suart_utils.h"
#include "suart_err.h"
#include "csl/cslr_mcasp.h"

Go to the source code of this file.

Functions

void pru_set_ram_data (arm_pru_iomap *arm_iomap_pru)
 
short pru_softuart_init (unsigned int txBaudValue, unsigned int rxBaudValue, unsigned int oversampling, unsigned char *pru_suart_emu_code, unsigned int fw_size, arm_pru_iomap *arm_iomap_pru)
 
void pru_set_fifo_timeout (Uint32 timeout)
 
void pru_mcasp_deinit (void)
 
short pru_softuart_deinit (void)
 
short pru_softuart_open (suart_handle hSuart)
 
short pru_softuart_close (suart_handle hUart)
 
short pru_softuart_setbaud (suart_handle hUart, unsigned short txClkDivisor, unsigned short rxClkDivisor)
 
short pru_softuart_setdatabits (suart_handle hUart, unsigned short txDataBits, unsigned short rxDataBits)
 
short pru_softuart_setconfig (suart_handle hUart, suart_config *configUart)
 
short pru_softuart_getTxDataLen (suart_handle hUart)
 
short pru_softuart_getRxDataLen (suart_handle hUart)
 
short pru_softuart_getconfig (suart_handle hUart, suart_config *configUart)
 
int pru_softuart_pending_tx_request (void)
 
short pru_softuart_write (suart_handle hUart, unsigned int *ptTxDataBuf, unsigned short dataLen)
 
short pru_softuart_read (suart_handle hUart, unsigned int *ptDataBuf, unsigned short dataLen)
 
short pru_softuart_read_data (suart_handle hUart, Uint8 *pDataBuffer, Int32 s32MaxLen, Uint32 *pu32DataRead)
 
short pru_softuart_stopReceive (suart_handle hUart)
 
short pru_softuart_getTxStatus (suart_handle hUart)
 
short pru_softuart_clrTxStatus (suart_handle hUart)
 
short pru_softuart_getRxStatus (suart_handle hUart)
 
short pru_softuart_clrRxFifo (suart_handle hUart)
 
short pru_softuart_clrRxStatus (suart_handle hUart)
 
short pru_softuart_get_isrstatus (unsigned short uartNum, unsigned short *txrxFlag)
 
int pru_intr_clr_isrstatus (unsigned short uartNum, unsigned int txrxmode)
 
short suart_arm_to_pru_intr (unsigned short uartNum)
 
short arm_to_pru_intr_init (void)
 
int suart_pru_to_host_intr_enable (unsigned short uartNum, unsigned int txrxmode, int s32Flag)
 
int suart_intr_setmask (unsigned short uartNum, unsigned int txrxmode, unsigned int intrmask)
 
int suart_intr_clrmask (unsigned short uartNum, unsigned int txrxmode, unsigned int intrmask)
 
int suart_intr_getmask (unsigned short uartNum, unsigned int txrxmode, unsigned int intrmask)
 

Function Documentation

short arm_to_pru_intr_init ( void  )

Definition at line 2444 of file suart_api.c.

int pru_intr_clr_isrstatus ( unsigned short  uartNum,
unsigned int  txrxmode 
)

Definition at line 2352 of file suart_api.c.

void pru_mcasp_deinit ( void  )

Definition at line 684 of file suart_api.c.

void pru_set_fifo_timeout ( Uint32  timeout)

Definition at line 644 of file suart_api.c.

void pru_set_ram_data ( arm_pru_iomap arm_iomap_pru)

Definition at line 39 of file suart_api.c.

short pru_softuart_close ( suart_handle  hUart)

Definition at line 875 of file suart_api.c.

short pru_softuart_clrRxFifo ( suart_handle  hUart)

Definition at line 2123 of file suart_api.c.

short pru_softuart_clrRxStatus ( suart_handle  hUart)

Definition at line 2203 of file suart_api.c.

short pru_softuart_clrTxStatus ( suart_handle  hUart)

Definition at line 2018 of file suart_api.c.

short pru_softuart_deinit ( void  )

Definition at line 689 of file suart_api.c.

short pru_softuart_get_isrstatus ( unsigned short  uartNum,
unsigned short *  txrxFlag 
)

Definition at line 2262 of file suart_api.c.

short pru_softuart_getconfig ( suart_handle  hUart,
suart_config configUart 
)

Definition at line 1401 of file suart_api.c.

short pru_softuart_getRxDataLen ( suart_handle  hUart)

Definition at line 1343 of file suart_api.c.

short pru_softuart_getRxStatus ( suart_handle  hUart)

Definition at line 2074 of file suart_api.c.

short pru_softuart_getTxDataLen ( suart_handle  hUart)

Definition at line 1286 of file suart_api.c.

short pru_softuart_getTxStatus ( suart_handle  hUart)

Definition at line 1969 of file suart_api.c.

short pru_softuart_init ( unsigned int  txBaudValue,
unsigned int  rxBaudValue,
unsigned int  oversampling,
unsigned char *  pru_suart_emu_code,
unsigned int  fw_size,
arm_pru_iomap arm_iomap_pru 
)

Definition at line 530 of file suart_api.c.

short pru_softuart_open ( suart_handle  hSuart)

Definition at line 722 of file suart_api.c.

int pru_softuart_pending_tx_request ( void  )

Definition at line 1530 of file suart_api.c.

short pru_softuart_read ( suart_handle  hUart,
unsigned int *  ptDataBuf,
unsigned short  dataLen 
)

Definition at line 1664 of file suart_api.c.

short pru_softuart_read_data ( suart_handle  hUart,
Uint8 *  pDataBuffer,
Int32  s32MaxLen,
Uint32 *  pu32DataRead 
)

Definition at line 1753 of file suart_api.c.

short pru_softuart_setbaud ( suart_handle  hUart,
unsigned short  txClkDivisor,
unsigned short  rxClkDivisor 
)

Definition at line 894 of file suart_api.c.

short pru_softuart_setconfig ( suart_handle  hUart,
suart_config configUart 
)

Definition at line 1112 of file suart_api.c.

short pru_softuart_setdatabits ( suart_handle  hUart,
unsigned short  txDataBits,
unsigned short  rxDataBits 
)

Definition at line 1005 of file suart_api.c.

short pru_softuart_stopReceive ( suart_handle  hUart)

Definition at line 1899 of file suart_api.c.

short pru_softuart_write ( suart_handle  hUart,
unsigned int *  ptTxDataBuf,
unsigned short  dataLen 
)

Definition at line 1577 of file suart_api.c.

short suart_arm_to_pru_intr ( unsigned short  uartNum)

Definition at line 2398 of file suart_api.c.

int suart_intr_clrmask ( unsigned short  uartNum,
unsigned int  txrxmode,
unsigned int  intrmask 
)

Definition at line 2953 of file suart_api.c.

int suart_intr_getmask ( unsigned short  uartNum,
unsigned int  txrxmode,
unsigned int  intrmask 
)

Definition at line 3075 of file suart_api.c.

int suart_intr_setmask ( unsigned short  uartNum,
unsigned int  txrxmode,
unsigned int  intrmask 
)

Definition at line 2824 of file suart_api.c.

int suart_pru_to_host_intr_enable ( unsigned short  uartNum,
unsigned int  txrxmode,
int  s32Flag 
)

Definition at line 2772 of file suart_api.c.