summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-06-08 10:35:23 +0200
committerDaniel Campora <daniel@wipy.io>2015-06-08 10:38:19 +0200
commit371f4ba6b3166a9616c383c5438dec6556f1089e (patch)
tree4b9622b7e142ef3116a0922f10f4b6520c26d3d0
parent0aa5e7500047d869cc78e8914fc08b5d6a3f5994 (diff)
downloadmicropython-371f4ba6b3166a9616c383c5438dec6556f1089e.tar.gz
micropython-371f4ba6b3166a9616c383c5438dec6556f1089e.zip
cc3200: Wrap antenna_init0() with #if MICROPY_HW_ANTENNA_DIVERSITY.
-rw-r--r--cc3200/mods/pybsleep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc3200/mods/pybsleep.c b/cc3200/mods/pybsleep.c
index 9b239bb713..af16cc512c 100644
--- a/cc3200/mods/pybsleep.c
+++ b/cc3200/mods/pybsleep.c
@@ -398,8 +398,10 @@ void pybsleep_suspend_exit (void) {
// ungate the clock to the shared spi bus
MAP_PRCMPeripheralClkEnable(PRCM_SSPI, PRCM_RUN_MODE_CLK | PRCM_SLP_MODE_CLK);
+#if MICROPY_HW_ANTENNA_DIVERSITY
// re-configure the antenna selection pins
antenna_init0();
+#endif
// reinitialize simplelink's interface
sl_IfOpen (NULL, 0);