3 * Copyright (C) 2006-2014 wolfSSL Inc.
5 * This file is part of CyaSSL.
7 * CyaSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * CyaSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26 #include <cyassl/ctaocrypt/visibility.h>
27 #include <cyassl/ctaocrypt/logging.h>
33 #include "cyassl_MDK_ARM.h"
34 #include <cyassl/ssl.h>
36 /*-----------------------------------------------------------------------------
37 * Initialize a Flash Memory Card
38 *----------------------------------------------------------------------------*/
39 static void init_filesystem (void) {
44 retv = fmount ("M0:");
46 printf ("Drive M0 ready!\n");
49 printf ("Drive M0 mount failed!\n");
52 printf ("Drive M0 initialization failed!\n");
56 /*-----------------------------------------------------------------------------
58 *----------------------------------------------------------------------------*/
59 void tcp_poll (void const *arg)
61 CYASSL_MSG("TCP polling started.\n") ;
68 typedef struct func_args {
73 extern void echoserver_test(func_args * args) ;
74 extern void init_time(void) ;
76 osThreadDef (tcp_poll, osPriorityHigh, 1, 0) ;
77 /*-----------------------------------------------------------------------------
79 *----------------------------------------------------------------------------*/
81 char* myoptarg = NULL;
88 osThreadCreate (osThread (tcp_poll), NULL);
89 osDelay(10000) ; /* wait for DHCP */
90 #if defined(DEBUG_CYASSL)
91 printf("Turning ON Debug message\n") ;
92 CyaSSL_Debugging_ON() ;
95 printf("echoserver: Started\n") ;
96 echoserver_test(args) ;
97 printf("echoserver: Terminated\n") ;