ubitxv6/utils.h
2020-02-10 00:35:32 -08:00

8 lines
216 B
C

#pragma once
#include <stdint.h>
#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);