main() { CSL_init(); /* Configure McBSP0 and AIC23 */ Config_DSK6713_AIC23(); /* Configure McBSP1*/ hMcbsp = MCBSP_open(MCBSP_DEV1, MCBSP_OPEN_RESET); MCBSP_config(hMcbsp, &datainterface_config); /* configure EDMA */ config_EDMA(); DSK6713_LED_off(0); DSK6713_LED_on(1); DSK6713_LED_off(2); DSK6713_LED_on(3); /* finally the interrupts */ config_interrupts(); MCBSP_start(hMcbsp, MCBSP_XMIT_START | MCBSP_RCV_START, 0xffffffff); // Start Audio IN & OUT transmision MCBSP_write(hMcbsp, 0x0); /* one shot */ configComplete = 1; //t_reg = DSK6713_rget(DSK6713_MISC); //t_reg |= MCBSP1SEL; // Set MCBSP1SEL to 1 (extern) //DSK6713_rset(DSK6713_MISC,t_reg); } /* finished*/
void toggle_LED(int led) { if(led_prev){ DSK6713_LED_off(led); led_prev = 0; }else{ DSK6713_LED_on(led); led_prev=1; } }
void leds_output(short led_state){ if(led_state == LED_STATE_ACTIVE){ DSK6713_LED_on(0); DSK6713_LED_off(1); DSK6713_LED_off(2); DSK6713_LED_off(3); }else{ DSK6713_LED_off(0); DSK6713_LED_off(1); DSK6713_LED_off(2); DSK6713_LED_off(3); } }