Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cpu/kinetis/include/bme.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C"
/**
* @brief Tell bit.h that we provide CPU specific bit manipulation functions
*/
#define BITBAND_FUNCTIONS_PROVIDED 1
#define BITBAND_FUNCTIONS_PROVIDED 0

#define BME_AND_MASK (1 << 26) /**< AND decoration bitmask */
#define BME_OR_MASK (1 << 27) /**< OR decoration bitmask */
Expand Down Expand Up @@ -121,6 +121,7 @@ static inline volatile uint8_t *bme_bitfield8(volatile uint8_t *ptr, uint8_t bit
return (volatile uint8_t *)(bme_bf_addr(ptr, bit, width));
}

#if BITBAND_FUNCTIONS_PROVIDED
/* For compatibility with the M3/M4 bitbanding macros: */

/**
Expand Down Expand Up @@ -243,6 +244,8 @@ static inline void bit_clear8(volatile uint8_t *ptr, uint8_t bit)
*((volatile uint8_t *)(((uintptr_t)ptr) | BME_AND_MASK)) = (uint8_t)(~(1ul << bit));
}

#endif /* BITBAND_FUNCTIONS_PROVIDED */

#ifdef __cplusplus
}
#endif
Expand Down
1 change: 1 addition & 0 deletions drivers/kw41zrf/kw41zrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <string.h>
#include <errno.h>

#include "bit.h"
#include "log.h"
#include "msg.h"
#include "net/gnrc.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/kw41zrf/kw41zrf_getset.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <errno.h>
#include <string.h>
#include "log.h"
#include "bit.h"
#include "cpu.h"
#include "byteorder.h"
#include "kw41zrf.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/kw41zrf/kw41zrf_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <assert.h>
#include <stdatomic.h>

#include "bit.h"
#include "log.h"
#include "random.h"
#include "thread_flags.h"
Expand Down Expand Up @@ -295,7 +296,7 @@
kw41zrf_set_power_mode(dev, KW41ZRF_POWER_IDLE);
}
/* get size of the received packet */
uint8_t pkt_len = (ZLL->IRQSTS & ZLL_IRQSTS_RX_FRAME_LENGTH_MASK) >> ZLL_IRQSTS_RX_FRAME_LENGTH_SHIFT;

Check warning on line 299 in drivers/kw41zrf/kw41zrf_netdev.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
if (pkt_len < IEEE802154_FCS_LEN) {
kw41zrf_unblock_rx(dev);
return -EAGAIN;
Expand Down