Exemple #1
0
void  BSP_InitIO (void)    
{
#ifdef _TARGET_440H
	BSP_IO_Init();
	LCD_Init();
	Tmr_Init();
    LED_Init();                                                         /* Initialize LEDs                                  */
	LS2_UART_Init();
#else
	SYSTEMConfig(BSP_CLK_FREQ, SYS_CFG_WAIT_STATES | SYS_CFG_PCACHE);
	
    BSP_IO_Init(); 
#ifndef AX12_REG_PROGRAMMING                                                     // Initialize the board's I/Os
    Tmr_Init();                                                         // Initialize the timers
    BSP_InitIntCtrl();                                                  // Initialize the interrupt controller
#endif

    LED_Init();                                                         // Initialize LEDs
    //PB_Init();                                                        // Initialize the push buttons
    ADC_Init();
	PMP_Init();
	LS2_UART_Init();
	PWM_Init();
#endif
}
Exemple #2
0
void  BSP_InitIO (void)    
{
                                                                        /* Enable optimal performance                       */
    SYSTEMConfigPerformance(BSP_CLK_FREQ);
    mOSCSetPBDIV(0);                                                    /* Use 1:1 CPU Core:Peripheral clocks               */

#if JTAG_ENABLE	
	DDPCONbits.JTAGEN = 1;                                              /* Maintain the port pins for JTAG use              */
#else
    DDPCONbits.JTAGEN = 0;                                              /* Free the JTAG port pins for use as GPIO          */
#endif

    BSP_InitIntCtrl();                                                  /* Initialize the interrupt controller              */
    BSP_IO_Init();                                                      /* Initialize the board's I/Os                      */
    Tmr_Init();                                                         /* Initialize the timers                            */
    LED_Init();                                                         /* Initialize LEDs                                  */
    LCD_Init();                                                         /* Initialize the LCD                               */
    PB_Init();                                                          /* Initialize the push buttons                      */
    ADC_Init();
}
Exemple #3
0
void startTask(void *pData)
{
    INT16U          delay;
    INT16U          xerr;
    char            dByte;

    (void)pData;                                                            /* Prevent compiler warning                        */
  
    
    Tmr_Init();
    iniAudioDvce();
    audioMode = A_STOP;
        
    erD_sndstr("\r\n\CerfPDA audio driver demo\r\n");
    erD_sndstr("Press H for help\r\n");
   
    
	
	while (1) {
        startPlay();
		OSTimeDly(1000);
    
		}
    }