#include uint16_t uint16_min(uint16_t x,uint16_t y) { if (x < y) return x; return y; }