Пример #1
0
void _main(void)
{
	LED_GPIO_Configuration();
	USART_Configuration(USART1);
#ifdef __DEBUG__
	printfs("this is in init fuction.\r\n");
	printfs("usart1's initation is compelete.\r\n");
	printfs("three lights can bright.\r\n");
#endif
	systick_init();
#ifdef __DEBUG__
	printfs("system ticket clock's initation is compelete.\r\n");
	printfs("\r\n");
	printfs("now into the tft's initation.\r\n");
#endif
	LCD_Init();
	set_orgin(120, 120);
}
Пример #2
0
/*******************************************************************************
* Function Name  : main
* Description    : Main program.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
int main(void)
{
    u8 res=0;
	delay_init();
    RCC_Configuration();  // Configure the system clocks
    NVIC_Configuration(); // NVIC Configuration
    GPIO_Configuration();
	
//    USART3_Configuration();	
    USART1_Configuration();
	
    Timer_Configuration();
	LED_GPIO_Configuration();
  	LED1_ON;;		

    Reset_W5500();
    WIZ_SPI_Init();

    ZC_Init();
    WIZ_Config(); // network config & Call Set_network ();
    Get_ChipInfo();
    presentTime = my_time; // For TCP client's connection request delay
    // Start Application
    printf("\r\n\r\n------------------------------------------- \r\n");
    printf("Loopback using W5500\r\n");  
    printf("------------------------------------------- ");
//    AC_ConfigWifi();

 do{
    res = Dhcp_Task();
    }while(res!=0);
    
   HF_WakeUp();
    while(1)
    {
     
      HF_Cloudfunc();
      
    }

}