Convert bit operations to using unit tested functions.
Convert bit operations to using unit tested functions.

Convert more bit wise operations to using unit tested functions from
bit-ops library.

Tested on board.

bjandre/avr-parking-proximity