KEK/utils.h
folkert van heusden 30a69ce0a5 ESP32 poc
2022-03-15 21:26:02 +01:00

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();