diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-03 17:32:55 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-03 17:32:55 +0100 |
commit | ae8feac598980d965c3eca9ab4f2903e51f955a5 (patch) | |
tree | 3d5cddc45a57dc33947a886961880d0a0e3a96db /stmhal/main.c | |
parent | 9c5fc83e6ab39abaf8e3c803c7f13cda33a50280 (diff) |
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.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index 603bf3188..5faa70e65 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -495,13 +495,11 @@ soft_reset: vstr_free(vstr); } -#if 0 -#if MICROPY_HW_HAS_WLAN - // wifi +#if MICROPY_HW_ENABLE_CC3K + // wifi using the CC3000 driver pyb_wlan_init(); pyb_wlan_start(); #endif -#endif // enter REPL // REPL mode can change, or it can request a soft reset |