void userTask(void *param) { char_t buffer[40]; //Point to the network interface NetInterface *interface = &netInterface[0]; //Endless loop while(1) { //Display IPv4 host address lcdSetCursor(1, 0); printf("%-16s", ipv4AddrToString(interface->ipv4Config.addr, buffer)); //SW1 pressed? if(!(MSS_GPIO_get_inputs() & (1 << MSS_GPIO_8))) { //FTP client test routine ftpClientTest(); //Wait for SW1 to be released while(!(MSS_GPIO_get_inputs() & (1 << MSS_GPIO_8))); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { char_t buffer[40]; //Point to the network interface NetInterface *interface = &netInterface[0]; //Initialize LCD display lcdSetCursor(2, 0); printf("IPv4 Addr\r\n"); lcdSetCursor(5, 0); printf("Press user button\r\nto run test\r\n"); //Endless loop while(1) { //Display IPv4 host address lcdSetCursor(3, 0); printf("%-16s\r\n", ipv4AddrToString(interface->ipv4Config.addr, buffer)); //User button pressed? if(!STM_EVAL_PBGetState(BUTTON_KEY)) { //FTP client test routine ftpClientTest(); //Wait for the user button to be released while(!STM_EVAL_PBGetState(BUTTON_KEY)); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { char_t buffer[40]; //Point to the network interface NetInterface *interface = &netInterface[0]; //Display IPv4 address lcdSetCursor(2, 0); printf("IPv4 Addr"); lcdSetCursor(5, 0); printf("Press user button\r\nto run test"); //Endless loop while(1) { //Refresh IPv4 address lcdSetCursor(3, 0); printf("%-16s", ipv4AddrToString(interface->ipv4Config.addr, buffer)); //Up button pressed? if(!(PIO_BT_UP->PIO_PDSR & BT_UP)) { //FTP client test routine ftpClientTest(); //Wait for the up button to be released while(!(PIO_BT_UP->PIO_PDSR & BT_UP)); } //100ms delay osDelay(100); } }
void userTask(void *param) { //Endless loop while(1) { //FTP client test routine ftpClientTest(); //Loop delay osDelayTask(10000); } }
void userTask(void *param) { char_t buffer[40]; //Point to the network interface NetInterface *interface = &netInterface[0]; lcdSetCursor(2, 0); printf("IPv4 Address\r\n"); lcdSetCursor(5, 0); printf("IPv6 Link-Local Address\r\n"); lcdSetCursor(8, 0); printf("IPv6 Global Address\r\n"); lcdSetCursor(11, 0); printf("Press SELECT button to run test\r\n"); //Endless loop while(1) { #if (IPV4_SUPPORT == ENABLED) //Display IPv4 host address lcdSetCursor(3, 0); printf("%-16s\r\n", ipv4AddrToString(interface->ipv4Config.addr, buffer)); #endif #if (IPV6_SUPPORT == ENABLED) //Display IPv6 link-local address lcdSetCursor(6, 0); printf("%-40s\r\n", ipv6AddrToString(&interface->ipv6Config.linkLocalAddr, buffer)); //Display IPv6 global address lcdSetCursor(9, 0); printf("%-40s\r\n", ipv6AddrToString(&interface->ipv6Config.globalAddr, buffer)); #endif //SELECT button pressed? if(!GPIOPinRead(GPIO_PORTP_BASE, GPIO_PIN_1)) { //FTP client test routine ftpClientTest(); //Wait for the SELECT button to be released while(!GPIOPinRead(GPIO_PORTP_BASE, GPIO_PIN_1)); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { char_t buffer[40]; //Point to the network interface NetInterface *interface = &netInterface[0]; //Initialize LCD display lcdSetCursor(2, 0); printf("IPv4 Addr\r\n"); lcdSetCursor(5, 0); printf("IPv6 Link-Local Addr\r\n"); lcdSetCursor(8, 0); printf("IPv6 Global Addr\r\n"); //Endless loop while(1) { #if (IPV4_SUPPORT == ENABLED) //Display IPv4 host address lcdSetCursor(3, 0); printf("%-16s\r\n", ipv4AddrToString(interface->ipv4Config.addr, buffer)); #endif #if (IPV6_SUPPORT == ENABLED) //Display IPv6 link-local address lcdSetCursor(6, 0); printf("%-40s\r\n", ipv6AddrToString(&interface->ipv6Config.linkLocalAddr, buffer)); //Display IPv6 global address lcdSetCursor(9, 0); printf("%-40s\r\n", ipv6AddrToString(&interface->ipv6Config.globalAddr, buffer)); #endif //User button pressed? if(BSP_PB_GetState(BUTTON_KEY)) { //FTP client test routine ftpClientTest(); //Wait for the user button to be released while(BSP_PB_GetState(BUTTON_KEY)); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { //Endless loop while(1) { //SW2 button pressed? if(!(GPIO_SW2->PDIR & SW2_MASK)) { //FTP client test routine ftpClientTest(); //Wait for the SW2 button to be released while(!(GPIO_SW2->PDIR & SW2_MASK)); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { //Endless loop while(1) { //WKUP button pressed? if(GPIO_ReadInputData(WKUP_GPIO) & WKUP_PIN) { //FTP client test routine ftpClientTest(); //Wait for the WKUP button to be released while(GPIO_ReadInputData(WKUP_GPIO) & WKUP_PIN); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { //Initial delay osDelayTask(100); //Endless loop while(1) { //BUT1 button pressed? if(!(LPC_GPIO_PORT->PIN[SW2_PORT] & SW2_MASK)) { //FTP client test routine ftpClientTest(); //Wait for the button to be released while(!(LPC_GPIO_PORT->PIN[SW2_PORT] & SW2_MASK)); } //Loop delay osDelayTask(100); } }
void userTask(void *param) { char_t buffer[40]; //Point to the network interface NetInterface *interface = &netInterface[0]; //Initialize LCD display lcdSetCursor(3, 0); printf("IPv4 Addr\r\n"); lcdSetCursor(6, 0); printf("Press SW1 to\r\n"); lcdSetCursor(7, 0); printf("run test\r\n"); //Endless loop while(1) { //Display IPv4 host address lcdSetCursor(4, 0); printf("%-16s\r\n", ipv4AddrToString(interface->ipv4Config.addr, buffer)); //SW1 button pressed? if(!SW1) { //FTP client test routine ftpClientTest(); //Wait for SW1 button to be released while(!SW1); } //Loop delay osDelayTask(100); } }