mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys: bitfield.h: some fixes
This commit is contained in:
parent
c839e65479
commit
3965e889e1
@ -27,6 +27,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -38,7 +39,7 @@ extern "C" {
|
||||
* @note SIZE should be a constant expression. This avoids variable length
|
||||
* arrays.
|
||||
*/
|
||||
#define BITFIELD(NAME, SIZE) (uint8_t NAME[((SIZE) + 7) / 8])
|
||||
#define BITFIELD(NAME, SIZE) uint8_t NAME[((SIZE) + 7) / 8]
|
||||
|
||||
/**
|
||||
* @brief Set the bit to 1
|
||||
|
Loading…
Reference in New Issue
Block a user