ubitxv6/utils.h
2020-02-10 00:16:15 -08:00

6 lines
195 B
C

#pragma once
#define LIMIT(val,min,max) ((val) < (min)) ? (min) : (((max) < (val)) ? (max) : (val))
void formatFreq(uint32_t freq, char* buff_out, uint16_t buff_size, uint8_t fixed_width = 0);