/*   Do *not* directly modify this file.  It was    */
/*   generated by the Configuration Tool; any  */
/*   changes risk being overwritten.                */

/* INPUT lab02.cdb */

/*  Include Header File  */
#include "lab02cfg.h"


#pragma CODE_SECTION(CSL_cfgInit,".text:CSL_cfgInit")

/*  Config Structures */
MCBSP_Config myMcbspConfig0 = {
    0x02000000,        /*  Serial Port Control Reg. (SPCR)   */
    0x00050040,        /*  Receiver Control Reg. (RCR)   */
    0x00050040,        /*  Transmitter Control Reg. (XCR)   */
    0x20000001,        /*  Sample-Rate Generator Reg. (SRGR)   */
    0x00000000,        /*  Multichannel Control Reg. (MCR)   */
    0x00000000,        /*  Receiver Channel Enable(RCER)   */
    0x00000000,        /*  Transmitter Channel Enable(XCER)   */
    0x00000000         /*  Pin Control Reg. (PCR)   */
};

MCBSP_Config myMcbspConfig1 = {
    0x02000000,        /*  Serial Port Control Reg. (SPCR)   */
    0x000400A0,        /*  Receiver Control Reg. (RCR)   */
    0x000400A0,        /*  Transmitter Control Reg. (XCR)   */
    0x20000001,        /*  Sample-Rate Generator Reg. (SRGR)   */
    0x00000000,        /*  Multichannel Control Reg. (MCR)   */
    0x00000000,        /*  Receiver Channel Enable(RCER)   */
    0x00000000,        /*  Transmitter Channel Enable(XCER)   */
    0x0000000C         /*  Pin Control Reg. (PCR)   */
};

/*  Handles  */
MCBSP_Handle hMcbsp1;

/*
 *  ======== CSL_cfgInit() ========  
 */
void CSL_cfgInit()
{
    hMcbsp1 = MCBSP_open(MCBSP_DEV1, MCBSP_OPEN_RESET);
    MCBSP_config(hMcbsp1, &myMcbspConfig1);
}
