Update bsp/bar.h

Start at making it work with bare metal and linux.