1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cc2538: disable l2 ack recv irq

This commit is contained in:
smlng 2016-09-27 15:04:39 +02:00
parent 25e18dad88
commit 77250f89a3

View File

@ -28,6 +28,8 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#define CC2538_ACCEPT_FT_2_ACK (1 << 5)
typedef struct {
cc2538_reg_t *reg_addr;
uint32_t value;
@ -134,7 +136,8 @@ void cc2538_init(void)
/* Flush the receive and transmit FIFOs */
RFCORE_SFR_RFST = ISFLUSHTX;
RFCORE_SFR_RFST = ISFLUSHRX;
/* Disable/filter l2 Acks */
RFCORE_XREG_FRMFILT1 &= ~CC2538_ACCEPT_FT_2_ACK;
cc2538_on();
}