Simple example demonstrating WiConnect host library web setup feature.

Dependencies:   WiConnect mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers target_config.h Source File

target_config.h

00001 /*
00002  * Copyright 2014, ACKme Networks
00003  * All Rights Reserved.
00004  *
00005  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of ACKme Networks;
00006  * the contents of this file may not be disclosed to third parties, copied
00007  * or duplicated in any form, in whole or in part, without the prior
00008  * written permission of ACKme Networks.
00009  */
00010 
00011 #pragma once
00012 
00013 
00014 // The BAUD rate your PC/MAC/Linux terminal uses with the eval board
00015 #define CONSOLE_BAUD 115200
00016 
00017 
00018 // Uncomment this to enable WiConnect serial interface hardware flow control
00019 // NOTE: your platform must support the serial flow control api functions
00020 //#define ENABLE_FLOW_CONTROL
00021 
00022 
00023 #define WICONNECT_INTERNAL_BUFFER_SIZE (4*1024)
00024 #define WICONNECT_SERIAL_RX_BUFFER_SIZE (4*1024)
00025 
00026 #define DEFAULT_CMD_GETCHAR_TIMEOUT 250
00027 #define DEFAULT_COMMAND_LINE_LENGTH_MAX 128
00028 #define DEFAULT_COMMAND_MAX_HISTORY 16
00029 #define DEFAULT_CMD_PROMPT_STR "> "
00030 #define DEFAULT_COMMAND_MAX_ARGV 16
00031 
00032 #define TEST_NONBLOCKING_API false
00033 #define TEST_BUFFER_LENGTH 4*1024
00034 
00035 
00036 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00037 // Seabass Target Configuration
00038 #ifdef TARGET_SEABASS
00039 
00040 #define WICONNECT_TX_PIN PA_9
00041 #define WICONNECT_RX_PIN PA_10
00042 #define WICONNECT_RESET_PIN PB_0
00043 #define WICONNECT_WAKE_PIN NC
00044 
00045 #ifdef ENABLE_FLOW_CONTROL
00046 #define WICONNECT_CTS_PIN PA_11
00047 #define WICONNECT_RTS_PIN PA_12
00048 #else
00049 #define WICONNECT_CTS_PIN NC
00050 #define WICONNECT_RTS_PIN NC
00051 #endif
00052 
00053 #endif
00054 
00055 
00056 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00057 // Nucleo F401RE Target Configuration
00058 #ifdef TARGET_NUCLEO_F401RE
00059 
00060 #define WICONNECT_TX_PIN PA_9
00061 #define WICONNECT_RX_PIN PA_10
00062 #define WICONNECT_RESET_PIN PC_7
00063 #define WICONNECT_WAKE_PIN NC
00064 
00065 #ifdef ENABLE_FLOW_CONTROL
00066 #define WICONNECT_CTS_PIN PA_11
00067 #define WICONNECT_RTS_PIN PA_12
00068 #else
00069 #define WICONNECT_CTS_PIN NC
00070 #define WICONNECT_RTS_PIN NC
00071 #endif
00072 
00073 #endif