ubitxv6/utils.h

8 lines
216 B
C
Raw Normal View History

2020-02-08 17:59:06 -05:00
#pragma once
2020-02-10 03:35:32 -05:00
#include <stdint.h>
2020-02-10 03:16:15 -05:00
#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);