- Introduction
- Installation
- Single C file project
- A simple project with two C files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BITMANIP_H | |
#define BITMANIP_H | |
/** | |
* @brief Macros for bit and bitfields manipulation | |
*/ | |
///@{ | |
// Bit macro (LSB=0) | |
#define BIT(N) (1UL<<(N)) | |
// Bit manipulation using masks | |
#define BITSET(V,M) (V)|=(M) |