| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /****************************************************************************** |
| 2 | |||
| 3 | MRF24WB0M Driver Console |
||
| 4 | Module for Microchip TCP/IP Stack |
||
| 5 | -Provides access to MRF24WB0M WiFi controller |
||
| 6 | -Reference: MRF24WB0M Data sheet, IEEE 802.11 Standard |
||
| 7 | |||
| 8 | ******************************************************************************* |
||
| 9 | FileName: WFConsole.h |
||
| 10 | Dependencies: TCP/IP Stack header files |
||
| 11 | Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32 |
||
| 12 | Compiler: Microchip C32 v1.10b or higher |
||
| 13 | Microchip C30 v3.22 or higher |
||
| 14 | Microchip C18 v3.34 or higher |
||
| 15 | Company: Microchip Technology, Inc. |
||
| 16 | |||
| 17 | Software License Agreement |
||
| 18 | |||
| 19 | Copyright (C) 2002-2010 Microchip Technology Inc. All rights reserved. |
||
| 20 | |||
| 21 | Microchip licenses to you the right to use, modify, copy, and distribute: |
||
| 22 | (i) the Software when embedded on a Microchip microcontroller or digital |
||
| 23 | signal controller product ("Device") which is integrated into |
||
| 24 | Licensee's product; or |
||
| 25 | (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h, |
||
| 26 | ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device used in |
||
| 27 | conjunction with a Microchip ethernet controller for the sole purpose |
||
| 28 | of interfacing with the ethernet controller. |
||
| 29 | |||
| 30 | You should refer to the license agreement accompanying this Software for |
||
| 31 | additional information regarding your rights and obligations. |
||
| 32 | |||
| 33 | THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY |
||
| 34 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY |
||
| 35 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND |
||
| 36 | NON-INFRINGEMENT. IN NO EVENT SHALL MICROCHIP BE LIABLE FOR ANY INCIDENTAL, |
||
| 37 | SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST |
||
| 38 | OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS BY |
||
| 39 | THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), ANY CLAIMS |
||
| 40 | FOR INDEMNITY OR CONTRIBUTION, OR OTHER SIMILAR COSTS, WHETHER ASSERTED ON |
||
| 41 | THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR |
||
| 42 | OTHERWISE. |
||
| 43 | |||
| 44 | |||
| 45 | Author Date Comment |
||
| 46 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
| 47 | KH 27 Jan 2010 Updated for MRF24WB0M |
||
| 48 | ******************************************************************************/ |
||
| 49 | |||
| 50 | #ifndef _WFCONSOLE_H_ |
||
| 51 | #define _WFCONSOLE_H_ |
||
| 52 | |||
| 53 | #include "TCPIP Stack/TCPIP.h" |
||
| 54 | #include "TCPIP Stack/WFConsoleMsgHandler.h" |
||
| 55 | |||
| 56 | #if defined (WF_CONSOLE) |
||
| 57 | #if defined(__18CXX) |
||
| 58 | #pragma varlocate 4 g_ConsoleContext |
||
| 59 | #endif |
||
| 60 | |||
| 61 | extern tConsoleContext g_ConsoleContext; |
||
| 62 | #endif |
||
| 63 | |||
| 64 | #define ARGC g_ConsoleContext.argc |
||
| 65 | #define ARGV g_ConsoleContext.argv |
||
| 66 | |||
| 67 | #if !defined(WF_CS_TRIS) && defined(WF_CONSOLE) |
||
| 68 | #undef WF_CONSOLE |
||
| 69 | #endif |
||
| 70 | |||
| 71 | #if !defined(WF_CONSOLE) && defined(WF_CONSOLE_IFCFGUTIL) |
||
| 72 | #undef WF_CONSOLE_IFCFGUTIL |
||
| 73 | #endif |
||
| 74 | |||
| 75 | extern void WFConsoleInit(void); |
||
| 76 | extern void WFConsoleProcess(void); |
||
| 77 | extern void WFConsoleProcessEpilogue(void); |
||
| 78 | extern void WFConsoleReqClear(void); |
||
| 79 | extern void WFConsoleProcess(void); |
||
| 80 | extern BOOL WFConsoleIsConsoleMsgReceived(void); |
||
| 81 | extern void WFConsoleReleaseConsoleMsg(void); |
||
| 82 | extern INT8 ** WFConsoleGetCmdLineArgv(void); |
||
| 83 | extern UINT8 WFConsoleGetCmdLineArgc(void); |
||
| 84 | extern void WFConsoleSetMsgFlag(void); |
||
| 85 | extern BOOL WFConsoleIsIperfAppKillRequested(void); |
||
| 86 | |||
| 87 | extern void WFConsolePrintInteger(UINT32 val, char mode); |
||
| 88 | extern void WFConsolePrintHex(UINT32 val, UINT8 width); |
||
| 89 | |||
| 90 | #define WFConsolePrintRamStr(str, newline) do { \ |
||
| 91 | putsUART((char*)(str)); \ |
||
| 92 | if (newline) putrsUART("\n\r"); \ |
||
| 93 | } while (FALSE) |
||
| 94 | |||
| 95 | #define WFConsolePrintRomStr(str, newline) do { \ |
||
| 96 | putrsUART(str); \ |
||
| 97 | if (newline) putrsUART("\n\r"); \ |
||
| 98 | } while (FALSE) |
||
| 99 | |||
| 100 | #endif /* _WFCONSOLE_H_ */ |
Powered by WebSVN v2.8.3