diff options
author | Daniel Campora <daniel@wipy.io> | 2015-06-06 18:42:51 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-06-07 00:06:27 +0200 |
commit | a3acaa000c0835c0b4e8c3f488071b0ff2caa58b (patch) | |
tree | 99b09a92ffbfaa46ce91c5cb16c5d0f8800339e7 /cc3200/bootmgr/main.c | |
parent | 098f5ae2216668e370468d3c6f4a663b94f767e0 (diff) | |
download | micropython-a3acaa000c0835c0b4e8c3f488071b0ff2caa58b.tar.gz micropython-a3acaa000c0835c0b4e8c3f488071b0ff2caa58b.zip |
cc3200: Add antenna selection feature to WLAN.
Diffstat (limited to 'cc3200/bootmgr/main.c')
-rw-r--r-- | cc3200/bootmgr/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cc3200/bootmgr/main.c b/cc3200/bootmgr/main.c index ece1bf276b..6c8be9a0c7 100644 --- a/cc3200/bootmgr/main.c +++ b/cc3200/bootmgr/main.c @@ -53,6 +53,7 @@ #include "cc3200_hal.h" #include "debug.h" #include "mperror.h" +#include "antenna.h" //***************************************************************************** @@ -151,6 +152,13 @@ static void bootmgr_board_init(void) { mperror_bootloader_check_reset_cause(); +#if MICROPY_HW_ANTENNA_DIVERSITY + // configure the antenna selection pins + antenna_init0(); + // select the internal antenna + antenna_select(ANTENNA_TYPE_INTERNAL); +#endif + // Enable the Data Hashing Engine CRYPTOHASH_Init(); |