diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-09-02 00:05:13 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-09-02 00:05:13 +0100 |
| commit | a2ee194612fee8b6c0924f999acf8c41f4207e8d (patch) | |
| tree | 160750dafb972d62775c2cc17e77b6e3e4fe2c56 /stmhal/modsocket.c | |
| parent | 6f70542d82c529173161275b0a21f090fecfddb2 (diff) | |
cc3k: Change configurability of the CC3000 module.iabdalkader-cc3k-update
Optional compiling of the CC3K module is moved from mpconfigboard.h.
To enable compiling of the module, set the MICROPY_PY_CC3K variable,
either on the command line (make MICROPY_PY_CC3K=1) on in the
mpconfigport.mk file. It is enabled by default.
Setting of the SPI and pins for the CC3K module is now done dynamically
by the arguments to wlan.init().
Diffstat (limited to 'stmhal/modsocket.c')
| -rw-r--r-- | stmhal/modsocket.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/stmhal/modsocket.c b/stmhal/modsocket.c index 1b7f0d28f..893d0393f 100644 --- a/stmhal/modsocket.c +++ b/stmhal/modsocket.c @@ -16,18 +16,10 @@ #include "portmodules.h" #include "hci.h" -#include "ccspi.h" -#include "wlan.h" #include "socket.h" -#include "nvmem.h" -#include "netapp.h" -#include "evnt_handler.h" -#include "patch_prog.h" #include "inet_ntop.h" #include "inet_pton.h" -#if MICROPY_HW_ENABLE_CC3K - #define EPIPE (32) #define MAX_FD (8) #define MAX_ADDRSTRLEN (128) @@ -360,5 +352,3 @@ const mp_obj_module_t socket_module = { .name = MP_QSTR_socket, .globals = (mp_obj_dict_t*)&socket_module_globals, }; - -#endif // MICROPY_HW_ENABLE_CC3K |
