/******************************************************************************
* Function name: main
* Description  : Main program function
* Arguments    : none
* Return value : none
******************************************************************************/
void main(void)
{
    /* Used to pace toggling of the LED */
    uint32_t led_counter;
    
    /* Initialize LCD */
    YRDKRX62N_RSPI_Init();
    lcd_initialize();
    
    /* Clear LCD */
    lcd_clear();
    
    /* Display message on LCD */
    lcd_display(LCD_LINE1, "  RENESAS   ");
    lcd_display(LCD_LINE2, " YRDKRX62N  ");

    /* 
        STDOUT is routed through the virtual console window tunneled through the JTAG debugger.
        Open the console window in HEW to see the output 
    */
    printf("This is the debug console\r\n");
    
    /* The three pushbuttons on the YRDK board are tied to interrupt lines, set them up here */
    switches_initialize();
    
    /* This is the main loop.  It does nothing but toggle LED4 periodically */
    while (1)
    {
        for (led_counter = 0; led_counter < 1000000; led_counter++)
        {
        }
        LED4 = ~LED4;
    }
}
Пример #2
0
/*******************************************************************************
* Function name:    main
* Description  : 	main function for Can API demo program. Initializes the LCD,
*                   flashes some LEDs, then calls the Can API demo program.
* Arguments    :    none
* Return value : 	none
*******************************************************************************/
void main(void)
{
    /* Setup LCD. */
    lcd_initialize();

    /* Display splash screen. */
   // lcd_display(LCD_LINE1, "Lab 2 ");
    //lcd_display(LCD_LINE4, "Sean");
    //lcd_display(LCD_LINE5, "Tanmay");
    //lcd_display(LCD_LINE4, "CAN Demo");

    /* Blink board LEDs. */
    blink_leds(20);

    switches_initialize(); 

    /* Run the CAN API Demo. */
    can_api_demo();
    
} /* End function main(). */