cc3000 hostdriver with the mbed socket interface
Fork of cc3000_hostdriver_mbedsocket by
Diff: cc3000_common.h
- Revision:
- 51:897cfc2c7e8c
- Parent:
- 50:04e43d8059b8
--- a/cc3000_common.h Sun Apr 05 14:25:45 2015 +0000 +++ b/cc3000_common.h Mon Apr 06 18:23:37 2015 +0000 @@ -80,8 +80,6 @@ The 1 is used for the overrun detection */ -#define CC3000_MINIMAL_RX_SIZE (118 + 1) -#define CC3000_MAXIMAL_RX_SIZE (1519 + 1) /*Defines for minimal and maximal TX buffer size. This buffer is used for sending events and data. @@ -102,31 +100,10 @@ The 1 is used for the overrun detection */ -#define CC3000_MINIMAL_TX_SIZE (118 + 1) -#define CC3000_MAXIMAL_TX_SIZE (1519 + 1) - -//TX and RX buffer size - allow to receive and transmit maximum data at lengh 8. -#ifdef CC3000_TINY_DRIVER -#define TINY_CC3000_MAXIMAL_RX_SIZE 44 -#define TINY_CC3000_MAXIMAL_TX_SIZE 59 -#endif - -/*In order to determine your preferred buffer size, - change CC3000_MAXIMAL_RX_SIZE and CC3000_MAXIMAL_TX_SIZE to a value between - the minimal and maximal specified above. - Note that the buffers are allocated by SPI. -*/ - #ifndef CC3000_TINY_DRIVER - - #define CC3000_RX_BUFFER_SIZE (CC3000_MAXIMAL_RX_SIZE) - #define CC3000_TX_BUFFER_SIZE (CC3000_MAXIMAL_TX_SIZE) #define SP_PORTION_SIZE 512 - -//TINY DRIVER: We use smaller rx and tx buffers in order to minimize RAM consumption +//TINY DRIVER: We use smaller buffers in order to minimize RAM consumption #else - #define CC3000_RX_BUFFER_SIZE (TINY_CC3000_MAXIMAL_RX_SIZE) - #define CC3000_TX_BUFFER_SIZE (TINY_CC3000_MAXIMAL_TX_SIZE) #define SP_PORTION_SIZE 32 #endif