/*H*************************************************************************** * * $Archive:: $ * $Revision:: $ * $Date:: $ * $Author:: $ * * DESCRIPTION: * * USAGE/LIMITATIONS: * * NOTES: * * By: Patrick Cresap * *H***************************************************************************/ #ifndef mcbsp5410_h #define mcbsp5410_h /*---- compilation control switches ----------------------------------------*/ /***************************************************************************** * INCLUDE FILES (minimize nesting of header files) *****************************************************************************/ /*---- system and platform files -------------------------------------------*/ /*---- program files -------------------------------------------------------*/ /***************************************************************************** * FILE CONTENT *****************************************************************************/ /***************************************************************************** * FUNCTIONAL AREA DETAIL *****************************************************************************/ /*A*************************************************************************** * NAME: * * USAGE: * * NOTES: * *A***************************************************************************/ /*---- context -------------------------------------------------------------*/ /*---- data descriptions ---------------------------------------------------*/ /*-- mcbsp Registers--------------------------------------------------------*/ #define SPCR1_sa 0x0000 #define SPCR2_sa 0x0001 #define RCR1_sa 0x0002 #define RCR2_sa 0x0003 #define XCR1_sa 0x0004 #define XCR2_sa 0x0005 #define SRGR1_sa 0x0006 #define SRGR2_sa 0x0007 #define MCR1_sa 0x0008 #define MCR2_sa 0x0009 #define RCERA_sa 0x000A #define RCERB_sa 0x000B #define XCERA_sa 0x000C #define XCERB_sa 0x000D #define PCR_sa 0x000E #define I_SPCR1 0x0020 #define I_SPCR2 0x0200 #define I_RCR1 0x0040 #define I_RCR2 0x0000 #define I_XCR1 0x0040 #define I_XCR2 0x0000 #define I_PCR 0x000C #define RRST_s 0x0001 #define XRST_s 0x0001 #define NO_GAIN 0xFC #define PHONE_MODE 0x40 #define FLAG_BIT 0x80 #define NO_FLAG_BIT 0x7F #define SAMPLE_MAX 0x70 #define SAMPLE_MIN 0x20 #define SAMPLE_INC 0x10 #define NO_SAMPLE 0x8F #define SAMPLE_FREQ 0x70 /*---- global data declarations --------------------------------------------*/ /*---- global function prototypes ------------------------------------------*/ void SerialPortInit( void ); void write_mcbsp0_subreg( unsigned int reg_add, unsigned int reg_val ); void read_mcbsp0_subreg( unsigned int reg_add, unsigned int *reg_val ); #endif /* mcbsp5410_h ------ END OF FILE -------------------------------------*/