Beaglebone cape

Would love to have libmodbus with these addons merged, but I have no idea how to do this.