Skip to content

Commit

Permalink
#200 : moved endif to end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryP6 committed Jan 9, 2025
1 parent 39abc7e commit 294e51e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions middleware/include/c_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
#define NER_SET_BIT(num, bit) \
bit < (sizeof(num) * 8) ? (num |= (1UL << bit)) : num

#endif /* C_UTILS */

void endian_swap(void *ptr, int size);

/// @brief Reverses the bit order of a byte
/// @param b byte
/// @return the same byte but wuth the bits reversed
unsigned char reverse_bits(unsigned char b);
unsigned char reverse_bits(unsigned char b);

#endif /* C_UTILS */

0 comments on commit 294e51e

Please sign in to comment.