diff options
| author | danicampora <danicampora@gmail.com> | 2015-03-15 11:45:01 +0100 |
|---|---|---|
| committer | danicampora <danicampora@gmail.com> | 2015-03-16 00:42:08 +0100 |
| commit | 2b8a718d733c1ba1d7c9a2150a66721478383301 (patch) | |
| tree | acf2306a0154da3ce99b70ea0895589cce4d55a7 /drivers/cc3100/inc/protocol.h | |
| parent | c292632b5969301d1328c66f38be4ddde40b4c62 (diff) | |
drivers: Update CC3100 driver library to SDK release version 1.1.0.
Diffstat (limited to 'drivers/cc3100/inc/protocol.h')
| -rw-r--r-- | drivers/cc3100/inc/protocol.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/cc3100/inc/protocol.h b/drivers/cc3100/inc/protocol.h index f83ad4c3d..8a1299a6a 100644 --- a/drivers/cc3100/inc/protocol.h +++ b/drivers/cc3100/inc/protocol.h @@ -149,6 +149,7 @@ typedef struct #define SL_FLAGS_MASK (0xF) #define SL_OPCODE_DEVICE_INITCOMPLETE 0x0008 +#define SL_OPCODE_DEVICE_ABORT 0x000C #define SL_OPCODE_DEVICE_STOP_COMMAND 0x8473 #define SL_OPCODE_DEVICE_STOP_RESPONSE 0x0473 #define SL_OPCODE_DEVICE_STOP_ASYNC_RESPONSE 0x0073 @@ -351,9 +352,6 @@ typedef struct #define SL_OPCODE_WLAN_SMARTCONFIGOPTGET 0x8C8E #define SL_OPCODE_WLAN_SMARTCONFIGOPTGETRESPONSE 0x0C8E -#define SL_OPCODE_FREE_BSD_RECV_BUFFER 0xCCCB -#define SL_OPCODE_FREE_NON_BSD_READ_BUFFER 0xCCCD - /* Rx Filters opcodes */ #define SL_OPCODE_WLAN_WLANRXFILTERADDCOMMAND 0x8C6C @@ -1032,6 +1030,7 @@ typedef struct _u16 rxKbitsSec; _u32 outOfOrderPackets; _u32 missedPackets; + _i16 token; }_CtestAsyncResponse_t; typedef struct @@ -1162,8 +1161,15 @@ typedef _BasicResponse_t _FsWriteResponse_t; -/* Set Max Async Payload length depending on flavor (Tiny, Small, etc.) */ -#define SL_ASYNC_MAX_PAYLOAD_LEN 160 /* size must be aligned to 4 */ +/* TODO: Set MAx Async Payload length depending on flavor (Tiny, Small, etc.) */ + + +#ifdef SL_TINY_EXT +#define SL_ASYNC_MAX_PAYLOAD_LEN 120 /* size must be aligned to 4 */ +#else +#define SL_ASYNC_MAX_PAYLOAD_LEN 160 /* size must be aligned to 4 */ +#endif + #define SL_ASYNC_MAX_MSG_LEN (_SL_RESP_HDR_SIZE + SL_ASYNC_MAX_PAYLOAD_LEN) #define RECV_ARGS_SIZE (sizeof(_SocketResponse_t)) |
