summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/main.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-06-06 18:42:51 +0200
committerDaniel Campora <daniel@wipy.io>2015-06-07 00:06:27 +0200
commita3acaa000c0835c0b4e8c3f488071b0ff2caa58b (patch)
tree99b09a92ffbfaa46ce91c5cb16c5d0f8800339e7 /cc3200/main.c
parent098f5ae2216668e370468d3c6f4a663b94f767e0 (diff)
downloadmicropython-a3acaa000c0835c0b4e8c3f488071b0ff2caa58b.tar.gz
micropython-a3acaa000c0835c0b4e8c3f488071b0ff2caa58b.zip
cc3200: Add antenna selection feature to WLAN.
Diffstat (limited to 'cc3200/main.c')
-rw-r--r--cc3200/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cc3200/main.c b/cc3200/main.c
index e38fd37286..6856cbfaf0 100644
--- a/cc3200/main.c
+++ b/cc3200/main.c
@@ -34,6 +34,7 @@
#include "simplelink.h"
#include "pybwdt.h"
#include "debug.h"
+#include "antenna.h"
#include "mperror.h"
/******************************************************************************
@@ -65,6 +66,13 @@ int main (void) {
// Initialize the clocks and the interrupt system
HAL_SystemInit();
+#if MICROPY_HW_ANTENNA_DIVERSITY
+ // configure the antenna selection pins
+ antenna_init0();
+ // select the internal antenna
+ antenna_select(ANTENNA_TYPE_INTERNAL);
+#endif
+
// Init the watchdog
pybwdt_init0();