#include <inmsp.h>unsigned char __swap_nibbles(unsigned char x);
__swap_nibbles swaps the high and low nibbles of x.
__swap_nibbles is an intrinsic function and produces inline code.
__swap_nibbles can be used on any MSP430 device.