예제 #1
0
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*/
예제 #2
0
파일: gpio.c 프로젝트: gefa/CC1101
void toggle_LED(int led)
{
	if(led_prev){
		DSK6713_LED_off(led);
		led_prev = 0;
	}else{
		DSK6713_LED_on(led);
		led_prev=1;
	}
}
예제 #3
0
파일: echo.c 프로젝트: upiitadsp/dsk_mixer
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);
    }
}