LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
suart_utils.h File Reference
#include "tistdtypes.h"

Go to the source code of this file.

Macros

#define PRU_SUART_SERIALIZER_0   (0u)
 
#define PRU_SUART_SERIALIZER_1   (1u)
 
#define PRU_SUART_SERIALIZER_2   (2u)
 
#define PRU_SUART_SERIALIZER_3   (3u)
 
#define PRU_SUART_SERIALIZER_4   (4u)
 
#define PRU_SUART_SERIALIZER_5   (5u)
 
#define PRU_SUART_SERIALIZER_6   (6u)
 
#define PRU_SUART_SERIALIZER_7   (7u)
 
#define PRU_SUART_SERIALIZER_8   (8u)
 
#define PRU_SUART_SERIALIZER_9   (9u)
 
#define PRU_SUART_SERIALIZER_10   (10u)
 
#define PRU_SUART_SERIALIZER_11   (11u)
 
#define PRU_SUART_SERIALIZER_12   (12u)
 
#define PRU_SUART_SERIALIZER_13   (13u)
 
#define PRU_SUART_SERIALIZER_14   (14u)
 
#define PRU_SUART_SERIALIZER_15   (15u)
 
#define PRU_SUART_SERIALIZER_NONE   (16u)
 
#define SUART_NUM_OF_BAUDS_SUPPORTED   13
 
#define MCASP_PDIR_VAL
 

Functions

void suart_mcasp_reset (arm_pru_iomap *pru_arm_iomap)
 
void suart_mcasp_config (unsigned int mcasp_addr, unsigned int txBaudValue, unsigned int rxBaudValue, unsigned int oversampling, arm_pru_iomap *pru_arm_iomap)
 
short suart_asp_baud_set (unsigned int txBaudValue, unsigned int rxBaudValue, unsigned int oversampling, arm_pru_iomap *pru_arm_iomap)
 
void suart_mcasp_psc_disable (unsigned int psc1_addr)
 
void suart_mcasp_psc_enable (unsigned int psc1_addr)
 
short suart_asp_serializer_deactivate (unsigned short u16srNum, arm_pru_iomap *pru_arm_iomap)
 
void suart_mcasp_tx_serialzier_set (unsigned int serializerNum, arm_pru_iomap *pru_arm_iomap)
 

Macro Definition Documentation

#define MCASP_PDIR_VAL
Value:
( \
#define CSL_MCASP_PDIR_AHCLKX_SHIFT
Definition: cslr_mcasp.h:392
#define CSL_MCASP_PDIR_AHCLKX_OUTPUT
Definition: cslr_mcasp.h:396
#define CSL_MCASP_PDIR_AFSR_OUTPUT
Definition: cslr_mcasp.h:368
#define CSL_MCASP_PDIR_ACLKX_OUTPUT
Definition: cslr_mcasp.h:403
#define CSL_MCASP_PDIR_AFSX_SHIFT
Definition: cslr_mcasp.h:385
#define CSL_MCASP_PDIR_ACLKR_OUTPUT
Definition: cslr_mcasp.h:382
#define CSL_MCASP_PDIR_AHCLKR_OUTPUT
Definition: cslr_mcasp.h:375
#define CSL_MCASP_PDIR_ACLKR_SHIFT
Definition: cslr_mcasp.h:378
#define CSL_MCASP_PDIR_AFSR_SHIFT
Definition: cslr_mcasp.h:364
#define CSL_MCASP_PDIR_AFSX_OUTPUT
Definition: cslr_mcasp.h:389
#define CSL_MCASP_PDIR_AHCLKR_SHIFT
Definition: cslr_mcasp.h:371
#define CSL_MCASP_PDIR_ACLKX_SHIFT
Definition: cslr_mcasp.h:399

Definition at line 71 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_0   (0u)

Definition at line 34 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_1   (1u)

Serializer

Definition at line 36 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_10   (10u)

Serializer

Definition at line 54 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_11   (11u)

Serializer

Definition at line 56 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_12   (12u)

Serializer

Definition at line 58 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_13   (13u)

Serializer

Definition at line 60 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_14   (14u)

Serializer

Definition at line 62 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_15   (15u)

Serializer

Definition at line 64 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_2   (2u)

Serializer

Definition at line 38 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_3   (3u)

Serializer

Definition at line 40 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_4   (4u)

Serializer

Definition at line 42 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_5   (5u)

Serializer

Definition at line 44 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_6   (6u)

Serializer

Definition at line 46 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_7   (7u)

Serializer

Definition at line 48 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_8   (8u)

Serializer

Definition at line 50 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_9   (9u)

Serializer

Definition at line 52 of file suart_utils.h.

#define PRU_SUART_SERIALIZER_NONE   (16u)

Serializer

Definition at line 66 of file suart_utils.h.

#define SUART_NUM_OF_BAUDS_SUPPORTED   13

Definition at line 69 of file suart_utils.h.

Function Documentation

short suart_asp_baud_set ( unsigned int  txBaudValue,
unsigned int  rxBaudValue,
unsigned int  oversampling,
arm_pru_iomap pru_arm_iomap 
)

Definition at line 374 of file suart_utils.c.

short suart_asp_serializer_deactivate ( unsigned short  u16srNum,
arm_pru_iomap pru_arm_iomap 
)

Definition at line 392 of file suart_utils.c.

void suart_mcasp_config ( unsigned int  mcasp_addr,
unsigned int  txBaudValue,
unsigned int  rxBaudValue,
unsigned int  oversampling,
arm_pru_iomap pru_arm_iomap 
)

Definition at line 154 of file suart_utils.c.

void suart_mcasp_psc_disable ( unsigned int  psc1_addr)

Definition at line 455 of file suart_utils.c.

void suart_mcasp_psc_enable ( unsigned int  psc1_addr)

Definition at line 426 of file suart_utils.c.

void suart_mcasp_reset ( arm_pru_iomap pru_arm_iomap)

Definition at line 140 of file suart_utils.c.

void suart_mcasp_tx_serialzier_set ( unsigned int  serializerNum,
arm_pru_iomap pru_arm_iomap 
)

Definition at line 252 of file suart_utils.c.