HIT Project #3 https://community.freescale.com/docs/DOC-99621
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
MonkeyDo!

These are the demo files for Freescale HIT project #3: Monkey Do. It uses a FRDM-AUTO + a FRDM-K64F to demo websockets for a simple IoT application.
See the main MonkeyDo page for all of the schematics, videos, GitHub links, etc for everything else!
https://community.freescale.com/docs/DOC-99621
GLUE/Terminal.h
- Committer:
- emh203
- Date:
- 2014-07-17
- Revision:
- 1:d87a428e88ee
- Parent:
- 0:29f58b9daa2c
File content as of revision 1:d87a428e88ee:
#include "System.h"
#include "Queue.h"
#ifndef TFC_TERMINAL_H_
#define TFC_TERMINAL_H_
extern ByteQueue TERMINAL_OUTPUT_QUEUE;
extern ByteQueue TERMINAL_INPUT_QUEUE;
void InitTerminal();
void ProcessTerminal();
#define TERMINAL_PRINTF(...) Qprintf(&TERMINAL_OUTPUT_QUEUE,__VA_ARGS__)
#define TERMINAL_PUTC(c) ByteEnqueue(&TERMINAL_OUTPUT_QUEUE,c)
#define TERMINAL_READABLE BytesInQueue(&TERMINAL_INPUT_QUEUE)
#define TERMINAL_GETC ForcedByteDequeue(&TERMINAL_INPUT_QUEUE)
typedef void (*TerminalCallback)(char *);
typedef struct
{
const char *CommandString;
TerminalCallback Callback;
const char *HelpString;
} TerminalCallbackRecord;
#endif /* TFC_TERMINAL_H_ */
Eli Hughes