Update bsp/bar.h

declare BARs correctly. Put more code into .c