z ysaito / Mbed 2 deprecated Pro_B2_4ZNR_B2DS_ResolverCtrl_824MAX

Dependencies:   QEI mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
sayzyas
Date:
Mon Mar 28 00:09:56 2016 +0000
Parent:
0:b1136bf48c38
Child:
2:c62dc496b79a
Commit message:
Rev20160325

Changed in this revision

4_main.cpp Show annotated file Show diff for this revision Revisions of this file
common.h Show annotated file Show diff for this revision Revisions of this file
--- a/4_main.cpp	Tue Feb 16 16:35:29 2016 +0000
+++ b/4_main.cpp	Mon Mar 28 00:09:56 2016 +0000
@@ -214,7 +214,7 @@
 
     DEBUG_PRINT_L0("> Board type: Resolver Counter controller(0x%02x)\r\n",i2c_saddress );
 
-    i2c_saddress <<= 1;
+    i2c_saddress = I2C_ADDRESS_RESOLVER;
     
     led_demo();
         
--- a/common.h	Tue Feb 16 16:35:29 2016 +0000
+++ b/common.h	Mon Mar 28 00:09:56 2016 +0000
@@ -61,7 +61,8 @@
 /* ***************** */
 /* Target definition */
 /* ***************** */
-#define Target_IIC_ADDR 0x10 // For Resolver count controller 
+#define I2C_ADDRESS_RESOLVER    0x02
+#define Target_IIC_ADDR 0x02 // For Resolver count controller 
 
 
 /* Command Packet */