summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/cc3k/security.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-03 17:32:55 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-03 17:32:55 +0100
commitae8feac598980d965c3eca9ab4f2903e51f955a5 (patch)
tree3d5cddc45a57dc33947a886961880d0a0e3a96db /stmhal/cc3k/security.c
parent9c5fc83e6ab39abaf8e3c803c7f13cda33a50280 (diff)
downloadmicropython-ae8feac598980d965c3eca9ab4f2903e51f955a5.tar.gz
micropython-ae8feac598980d965c3eca9ab4f2903e51f955a5.zip
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/cc3k/security.c')
-rw-r--r--stmhal/cc3k/security.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/cc3k/security.c b/stmhal/cc3k/security.c
index c12aee370d..c52d7f67e6 100644
--- a/stmhal/cc3k/security.c
+++ b/stmhal/cc3k/security.c
@@ -41,6 +41,9 @@
//*****************************************************************************
#include <stdint.h>
+#include "mpconfigport.h"
+
+#if MICROPY_HW_ENABLE_CC3K
#include "security.h"
@@ -533,3 +536,5 @@ signed long aes_write_key(unsigned char *key)
//! @}
//
//*****************************************************************************
+
+#endif // MICROPY_HW_ENABLE_CC3K