Initial commit of motor driver firmware

Dependencies:   mbed-src

Fork of mbed_AS5047P_driver by Duncan Haldane

Revision:
1:d68c51a0a706
Parent:
0:00c56a9c6dee
--- a/enc.h	Sat Mar 05 00:09:45 2016 +0000
+++ b/enc.h	Wed Sep 28 16:59:46 2016 +0000
@@ -20,7 +20,7 @@
     ~enc();
     unsigned int  ams_read();
     void update_pos();
-    void set_offset();
+    void set_offset(ushort zpos);
     unsigned int cal_state(); //Calibrated stat
     static ushort par(ushort value);
     ushort write_spi(ushort reg, u8 rw);