![](/media/cache/group/ackmelogo_1.png.50x50_q85.png)
Simple example demonstrating WiConnect host library web setup feature.
target_config.h@9:52420cecdb16, 2014-09-07 (annotated)
- Committer:
- dan_ackme
- Date:
- Sun Sep 07 02:17:09 2014 +0000
- Revision:
- 9:52420cecdb16
- Parent:
- 0:1cdfcc4243a0
updated for STM32F411
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan_ackme | 9:52420cecdb16 | 1 | /** |
dan_ackme | 9:52420cecdb16 | 2 | * ACKme WiConnect Host Library is licensed under the BSD licence: |
dan_ackme | 9:52420cecdb16 | 3 | * |
dan_ackme | 9:52420cecdb16 | 4 | * Copyright (c)2014 ACKme Networks. |
dan_ackme | 9:52420cecdb16 | 5 | * All rights reserved. |
dan_ackme | 9:52420cecdb16 | 6 | * |
dan_ackme | 9:52420cecdb16 | 7 | * Redistribution and use in source and binary forms, with or without modification, |
dan_ackme | 9:52420cecdb16 | 8 | * are permitted provided that the following conditions are met: |
dan_ackme | 9:52420cecdb16 | 9 | * |
dan_ackme | 9:52420cecdb16 | 10 | * 1. Redistributions of source code must retain the above copyright notice, |
dan_ackme | 9:52420cecdb16 | 11 | * this list of conditions and the following disclaimer. |
dan_ackme | 9:52420cecdb16 | 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
dan_ackme | 9:52420cecdb16 | 13 | * this list of conditions and the following disclaimer in the documentation |
dan_ackme | 9:52420cecdb16 | 14 | * and/or other materials provided with the distribution. |
dan_ackme | 9:52420cecdb16 | 15 | * 3. The name of the author may not be used to endorse or promote products |
dan_ackme | 9:52420cecdb16 | 16 | * derived from this software without specific prior written permission. |
dan_ackme | 9:52420cecdb16 | 17 | * |
dan_ackme | 9:52420cecdb16 | 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS AND ANY EXPRESS OR IMPLIED |
dan_ackme | 9:52420cecdb16 | 19 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
dan_ackme | 9:52420cecdb16 | 20 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
dan_ackme | 9:52420cecdb16 | 21 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
dan_ackme | 9:52420cecdb16 | 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
dan_ackme | 9:52420cecdb16 | 23 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
dan_ackme | 9:52420cecdb16 | 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
dan_ackme | 9:52420cecdb16 | 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
dan_ackme | 9:52420cecdb16 | 26 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
dan_ackme | 9:52420cecdb16 | 27 | * OF SUCH DAMAGE. |
dan_ackme | 0:1cdfcc4243a0 | 28 | */ |
dan_ackme | 0:1cdfcc4243a0 | 29 | #pragma once |
dan_ackme | 0:1cdfcc4243a0 | 30 | |
dan_ackme | 0:1cdfcc4243a0 | 31 | |
dan_ackme | 0:1cdfcc4243a0 | 32 | // The BAUD rate your PC/MAC/Linux terminal uses with the eval board |
dan_ackme | 0:1cdfcc4243a0 | 33 | #define CONSOLE_BAUD 115200 |
dan_ackme | 0:1cdfcc4243a0 | 34 | |
dan_ackme | 0:1cdfcc4243a0 | 35 | |
dan_ackme | 0:1cdfcc4243a0 | 36 | // Uncomment this to enable WiConnect serial interface hardware flow control |
dan_ackme | 0:1cdfcc4243a0 | 37 | // NOTE: your platform must support the serial flow control api functions |
dan_ackme | 0:1cdfcc4243a0 | 38 | //#define ENABLE_FLOW_CONTROL |
dan_ackme | 0:1cdfcc4243a0 | 39 | |
dan_ackme | 0:1cdfcc4243a0 | 40 | |
dan_ackme | 0:1cdfcc4243a0 | 41 | #define WICONNECT_INTERNAL_BUFFER_SIZE (4*1024) |
dan_ackme | 0:1cdfcc4243a0 | 42 | #define WICONNECT_SERIAL_RX_BUFFER_SIZE (4*1024) |
dan_ackme | 0:1cdfcc4243a0 | 43 | |
dan_ackme | 0:1cdfcc4243a0 | 44 | #define DEFAULT_CMD_GETCHAR_TIMEOUT 250 |
dan_ackme | 0:1cdfcc4243a0 | 45 | #define DEFAULT_COMMAND_LINE_LENGTH_MAX 128 |
dan_ackme | 0:1cdfcc4243a0 | 46 | #define DEFAULT_COMMAND_MAX_HISTORY 16 |
dan_ackme | 0:1cdfcc4243a0 | 47 | #define DEFAULT_CMD_PROMPT_STR "> " |
dan_ackme | 0:1cdfcc4243a0 | 48 | #define DEFAULT_COMMAND_MAX_ARGV 16 |
dan_ackme | 0:1cdfcc4243a0 | 49 | |
dan_ackme | 0:1cdfcc4243a0 | 50 | #define TEST_NONBLOCKING_API false |
dan_ackme | 0:1cdfcc4243a0 | 51 | #define TEST_BUFFER_LENGTH 4*1024 |
dan_ackme | 0:1cdfcc4243a0 | 52 | |
dan_ackme | 0:1cdfcc4243a0 | 53 | |
dan_ackme | 0:1cdfcc4243a0 | 54 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
dan_ackme | 0:1cdfcc4243a0 | 55 | // Seabass Target Configuration |
dan_ackme | 0:1cdfcc4243a0 | 56 | #ifdef TARGET_SEABASS |
dan_ackme | 0:1cdfcc4243a0 | 57 | |
dan_ackme | 0:1cdfcc4243a0 | 58 | #define WICONNECT_TX_PIN PA_9 |
dan_ackme | 0:1cdfcc4243a0 | 59 | #define WICONNECT_RX_PIN PA_10 |
dan_ackme | 0:1cdfcc4243a0 | 60 | #define WICONNECT_RESET_PIN PB_0 |
dan_ackme | 0:1cdfcc4243a0 | 61 | #define WICONNECT_WAKE_PIN NC |
dan_ackme | 0:1cdfcc4243a0 | 62 | |
dan_ackme | 0:1cdfcc4243a0 | 63 | #ifdef ENABLE_FLOW_CONTROL |
dan_ackme | 0:1cdfcc4243a0 | 64 | #define WICONNECT_CTS_PIN PA_11 |
dan_ackme | 0:1cdfcc4243a0 | 65 | #define WICONNECT_RTS_PIN PA_12 |
dan_ackme | 0:1cdfcc4243a0 | 66 | #else |
dan_ackme | 0:1cdfcc4243a0 | 67 | #define WICONNECT_CTS_PIN NC |
dan_ackme | 0:1cdfcc4243a0 | 68 | #define WICONNECT_RTS_PIN NC |
dan_ackme | 0:1cdfcc4243a0 | 69 | #endif |
dan_ackme | 0:1cdfcc4243a0 | 70 | |
dan_ackme | 0:1cdfcc4243a0 | 71 | #endif |
dan_ackme | 0:1cdfcc4243a0 | 72 | |
dan_ackme | 0:1cdfcc4243a0 | 73 | |
dan_ackme | 0:1cdfcc4243a0 | 74 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
dan_ackme | 0:1cdfcc4243a0 | 75 | // Nucleo F401RE Target Configuration |
dan_ackme | 9:52420cecdb16 | 76 | #if defined(TARGET_NUCLEO_F401RE) || defined(TARGET_NUCLEO_F411RE) |
dan_ackme | 0:1cdfcc4243a0 | 77 | |
dan_ackme | 0:1cdfcc4243a0 | 78 | #define WICONNECT_TX_PIN PA_9 |
dan_ackme | 0:1cdfcc4243a0 | 79 | #define WICONNECT_RX_PIN PA_10 |
dan_ackme | 0:1cdfcc4243a0 | 80 | #define WICONNECT_RESET_PIN PC_7 |
dan_ackme | 0:1cdfcc4243a0 | 81 | #define WICONNECT_WAKE_PIN NC |
dan_ackme | 0:1cdfcc4243a0 | 82 | |
dan_ackme | 0:1cdfcc4243a0 | 83 | #ifdef ENABLE_FLOW_CONTROL |
dan_ackme | 0:1cdfcc4243a0 | 84 | #define WICONNECT_CTS_PIN PA_11 |
dan_ackme | 0:1cdfcc4243a0 | 85 | #define WICONNECT_RTS_PIN PA_12 |
dan_ackme | 0:1cdfcc4243a0 | 86 | #else |
dan_ackme | 0:1cdfcc4243a0 | 87 | #define WICONNECT_CTS_PIN NC |
dan_ackme | 0:1cdfcc4243a0 | 88 | #define WICONNECT_RTS_PIN NC |
dan_ackme | 0:1cdfcc4243a0 | 89 | #endif |
dan_ackme | 0:1cdfcc4243a0 | 90 | |
dan_ackme | 0:1cdfcc4243a0 | 91 | #endif |
dan_ackme | 9:52420cecdb16 | 92 |