From a3acaa000c0835c0b4e8c3f488071b0ff2caa58b Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Sat, 6 Jun 2015 18:42:51 +0200 Subject: cc3200: Add antenna selection feature to WLAN. --- cc3200/bootmgr/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cc3200/bootmgr/main.c') diff --git a/cc3200/bootmgr/main.c b/cc3200/bootmgr/main.c index ece1bf276..6c8be9a0c 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(); -- cgit v1.2.3