2007-11-06 20:26:48 +00:00
|
|
|
#ifndef CMD_H_
|
|
|
|
#define CMD_H_
|
|
|
|
|
|
|
|
#include <queue.h>
|
|
|
|
|
|
|
|
#define MAX_CMD_LEN 32
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
enum { SRC_USB, SRC_RF } source;
|
|
|
|
portCHAR command[ MAX_CMD_LEN ];
|
|
|
|
} cmd_type;
|
|
|
|
|
|
|
|
portBASE_TYPE vCmdInit(void);
|
2007-11-18 00:04:42 +00:00
|
|
|
extern void DumpUIntToUSB(unsigned int data);
|
2008-03-10 00:53:54 +00:00
|
|
|
extern void DumpStringToUSB(const char *string);
|
2007-11-06 20:26:48 +00:00
|
|
|
extern void DumpBufferToUSB(char* buffer, int len);
|
2008-02-03 23:51:20 +00:00
|
|
|
extern void DumpTimeToUSB(long ticks);
|
2007-11-06 20:26:48 +00:00
|
|
|
extern xQueueHandle xCmdQueue;
|
|
|
|
|
|
|
|
#endif /*CMD_H_*/
|