Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lmic_MOTE_L152RC by
Diff: TARGET_MOTE_L152RC/hal.cpp
- Revision:
- 4:1a9a62cf220f
- Parent:
- 2:edb5d1f3deeb
- Child:
- 6:dfc048cda33f
diff -r d87012f45bf6 -r 1a9a62cf220f TARGET_MOTE_L152RC/hal.cpp
--- a/TARGET_MOTE_L152RC/hal.cpp Thu Jun 18 23:22:43 2015 +0000
+++ b/TARGET_MOTE_L152RC/hal.cpp Tue Jul 07 18:25:05 2015 +0000
@@ -18,12 +18,10 @@
static DigitalInOut rst(RESET_PIN);
-//DigitalOut RFSwitch_CNTR_2(PC_13);
-//static DigitalOut rxtx(PC_4); // RFSwitch_CNTR_1
DigitalOut rfsw1(RFSW1);
DigitalOut rfsw2(RFSW2);
-static DigitalOut hdr_fem_ctx(PC_7);
+DigitalOut hdr_fem_ctx(PC_1);
static InterruptIn dio0(PC_6);
static InterruptIn dio1(PC_10);
@@ -245,7 +243,7 @@
#ifdef SLEEP_DEBUG
start_tick = hal_ticks();
#endif /* SLEEP_DEBUG */
- hdr_fem_ctx = 1;
+ //hdr_fem_ctx = 1;
if (deep_sleep) {
#ifndef USE_DEBUGGER
@@ -262,7 +260,7 @@
} else
sleep(); // blocks until waking
- hdr_fem_ctx = 0;
+ //hdr_fem_ctx = 0;
#ifdef SLEEP_DEBUG
end_tick = hal_ticks();
time_asleep = end_tick - start_tick;
@@ -307,12 +305,15 @@
rfsw2 = 1;
rfsw1 = 0;
}
+ //hdr_fem_ctx = 0; // debug
} else if (mode == OPMODE_RX || mode == OPMODE_RX_SINGLE || mode == OPMODE_CAD) { // start of reception
rfsw2 = 1;
- rfsw1 = 1;
+ rfsw1 = 1;
+ //hdr_fem_ctx = 1; // debug
} else { // RF switch shutdown
rfsw2 = 0;
rfsw1 = 0;
+ //hdr_fem_ctx = 0; // debug
}
}
