1
0
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:
Kaspar Schleiser 2015-05-29 15:56:23 +02:00
parent c839e65479
commit 3965e889e1

View File

@ -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