diff options
Diffstat (limited to 'cc3200/main.c')
-rw-r--r-- | cc3200/main.c | 8 |
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(); |