Updated CC3000 driver from David Sidrane

This commit is contained in:
Gregory Nutt
2013-10-30 14:37:13 -06:00
parent 6b8c1cc480
commit 85e90b0064
10 changed files with 168 additions and 455 deletions
+13 -1
View File
@@ -66,7 +66,11 @@
/* IOCTL commands */
#define CC3000IOC_GETQUESEMID _WLIOC_USER(0x0001) /* arg: Address of int for number*/
#define CC3000IOC_GETQUESEMID _WLIOC_USER(0x0001) /* arg: Address of int for number*/
#define CC3000IOC_ADDSOCKET _WLIOC_USER(0x0002) /* arg: Address of int for result*/
#define CC3000IOC_REMOVESOCKET _WLIOC_USER(0x0003) /* arg: Address of int for result*/
#define CC3000IOC_SELECTDATA _WLIOC_USER(0x0004) /* arg: Address of int for result*/
#define CC3000IOC_SELECTACCEPT _WLIOC_USER(0x0005) /* arg: Address of struct cc3000_acceptcfg_s */
/****************************************************************************
* Public Types
@@ -77,6 +81,14 @@ typedef char *(*tDriverPatches)(unsigned long *usLength);
typedef char *(*tBootLoaderPatches)(unsigned long *usLength);
typedef void (*tWlanCB)(long event_type, char * data, unsigned char length);
typedef struct cc3000_acceptcfg_s
{
int sockfd;
struct sockaddr *addr;
socklen_t *addrlen;
} cc3000_acceptcfg;
/****************************************************************************
* Public Function Prototypes
****************************************************************************/