14 lines
344 B
C++
14 lines
344 B
C++
// (C) 2018 by Folkert van Heusden
|
|
// Released under Apache License v2.0
|
|
#include <stdint.h>
|
|
#include <string>
|
|
|
|
void setBit(uint16_t & v, const int bit, const bool vb);
|
|
int parity(int v);
|
|
|
|
#define sign(a) ( ( (a) < 0 ) ? -1 : ( (a) > 0 ) )
|
|
|
|
#if !defined(ESP32)
|
|
std::string format(const char *const fmt, ...);
|
|
#endif
|
|
unsigned long get_ms();
|