File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
stm-s2lp-rf-driver/source Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 17
17
#ifndef NANOSTACK_PHY_MCR20A_H_
18
18
#define NANOSTACK_PHY_MCR20A_H_
19
19
20
- #if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && defined(MBED_CONF_RTOS_PRESENT)
20
+ #if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)
21
21
#include " inttypes.h"
22
22
#include " NanostackRfPhy.h"
23
23
#include " DigitalIn.h"
Original file line number Diff line number Diff line change 42
42
#include "MCR20Reg.h"
43
43
#include "XcvrSpi.h"
44
44
45
- #if defined(MBED_CONF_NANOSTACK_CONFIGURATION ) && DEVICE_SPI
45
+ #if defined(MBED_CONF_NANOSTACK_CONFIGURATION ) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined( MBED_CONF_RTOS_PRESENT )
46
46
47
47
#include "platform/mbed_critical.h"
48
48
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- #include " NanostackRfPhyMcr20a.h"
17
16
18
17
#if defined(MBED_CONF_NANOSTACK_CONFIGURATION) && DEVICE_SPI && DEVICE_INTERRUPTIN && defined(MBED_CONF_RTOS_PRESENT)
19
18
19
+ #include " NanostackRfPhyMcr20a.h"
20
20
#include " ns_types.h"
21
21
#include " platform/arm_hal_interrupt.h"
22
22
#include " nanostack/platform/arm_hal_phy.h"
Original file line number Diff line number Diff line change @@ -931,8 +931,6 @@ static void rf_sync_detected_handler(void)
931
931
rf_state = RF_RX_STARTED;
932
932
TEST_RX_STARTED
933
933
rf_disable_interrupt (SYNC_WORD);
934
- rf_enable_interrupt (RX_FIFO_ALMOST_FULL);
935
- rf_enable_interrupt (RX_DATA_READY);
936
934
rf_backup_timer_start (MAX_PACKET_SENDING_TIME);
937
935
}
938
936
@@ -955,13 +953,15 @@ static void rf_receive(uint8_t rx_channel)
955
953
rf_rx_channel = rf_new_channel = rx_channel;
956
954
}
957
955
rf_send_command (S2LP_CMD_RX);
956
+ rf_poll_state_change (S2LP_STATE_RX);
958
957
rf_enable_interrupt (SYNC_WORD);
958
+ rf_enable_interrupt (RX_FIFO_ALMOST_FULL);
959
+ rf_enable_interrupt (RX_DATA_READY);
959
960
rf_enable_interrupt (RX_FIFO_UNF_OVF);
960
961
rx_data_length = 0 ;
961
962
if (rf_state != RF_CSMA_STARTED) {
962
963
rf_state = RF_IDLE;
963
964
}
964
- rf_poll_state_change (S2LP_STATE_RX);
965
965
rf_unlock ();
966
966
}
967
967
You can’t perform that action at this time.
0 commit comments