gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for fundef:BCDtoBIN (0.00 seconds)
tkernel_2
driver/tef_em1d/clk/src/rtc.c - 5.0KB - 183 lines
44: /* binary <-> BCD conversion */
45: #define BCDtoBIN(v)     (((v) >> 4) * 10 + ((v) & 0xF))
46: #define BINtoBCD(v)     ((((v) / 10) << 4) + ((v) % 10))