Files
rp_pico_test/Reverse.c
T
Stanislav N Mikhailov e89eb58de4 decomposition
2025-01-02 00:12:20 +03:00

5 lines
104 B
C

unsigned short reverse(unsigned short x)
{
x = (x & 0xFF) << 8 | (x & 0xFF00) >> 8;
return x;
}