summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/cc3k/socket.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-11 12:09:13 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-11 12:09:13 +0100
commita7a1a38df43958a267410d333f495db56a8b0902 (patch)
tree03cec0bc1ff468e66a530ba7706276715a548e24 /stmhal/cc3k/socket.h
parent50073ed5d61a89af95f1497c24965e50e95e6e9d (diff)
downloadmicropython-a7a1a38df43958a267410d333f495db56a8b0902.tar.gz
micropython-a7a1a38df43958a267410d333f495db56a8b0902.zip
stmhal: Update CC3000 driver to newer version.
Still not working properly.
Diffstat (limited to 'stmhal/cc3k/socket.h')
-rw-r--r--stmhal/cc3k/socket.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/stmhal/cc3k/socket.h b/stmhal/cc3k/socket.h
index 149b512663..cb86609a05 100644
--- a/stmhal/cc3k/socket.h
+++ b/stmhal/cc3k/socket.h
@@ -3,14 +3,6 @@
* socket.h - CC3000 Host Driver Implementation.
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
-* Adapted for use with the Arduino/AVR by KTOWN (Kevin Townsend)
-* & Limor Fried for Adafruit Industries
-* This library works with the Adafruit CC3000 breakout
-* ----> https://www.adafruit.com/products/1469
-* Adafruit invests time and resources providing this open source code,
-* please support Adafruit and open-source hardware by purchasing
-* products from Adafruit!
-*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -102,9 +94,6 @@ extern "C" {
#define SOCK_ON 0 // socket non-blocking mode is enabled
#define SOCK_OFF 1 // socket blocking mode is enabled
-#define TCP_NODELAY 0x0001
-#define TCP_BSDURGENT 0x7000
-
#define MAX_PACKET_SIZE 1500
#define MAX_LISTEN_QUEUE 4
@@ -373,7 +362,7 @@ extern long listen(long sd, long backlog);
//
//*****************************************************************************
#ifndef CC3000_TINY_DRIVER
-extern int gethostbyname(const char * hostname, uint8_t usNameLen, uint32_t* out_ip_addr);
+extern int gethostbyname(const char* hostname, unsigned short usNameLen, unsigned long* out_ip_addr);
#endif