Updated makefile to link peripheral lib.