From ae8feac598980d965c3eca9ab4f2903e51f955a5 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 3 May 2014 17:32:55 +0100 Subject: stmhal: Wrap CC3000 driver in MICROPY_HW_ENABLE_CC3K. This renames MICROPY_HW_HAS_WLAN to MICROPY_HW_ENABLE_CC3K (since it's a driver, not a board feature) and wraps all CC3000 code in this #if. It's disabled for all boards. --- stmhal/pybwlan.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stmhal/pybwlan.c') diff --git a/stmhal/pybwlan.c b/stmhal/pybwlan.c index 06309b61c..fb214209c 100644 --- a/stmhal/pybwlan.c +++ b/stmhal/pybwlan.c @@ -12,6 +12,8 @@ #include "obj.h" #include "runtime.h" +#if MICROPY_HW_ENABLE_CC3K + #include "cc3k/ccspi.h" #include "cc3k/hci.h" #include "cc3k/socket.h" @@ -377,3 +379,5 @@ void pyb_wlan_start(void) { printf("nvmem_read_sp_version=%d; %02x %02x\n", ret, ver[0], ver[1]); */ } + +#endif // MICROPY_HW_ENABLE_CC3K -- cgit v1.2.3