mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 00:30:23 +00:00
Updated CC3000 driver from David Sidrane
This commit is contained in:
parent
6b8c1cc480
commit
85e90b0064
10 changed files with 168 additions and 455 deletions
|
|
@ -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
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue