Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: QEI mbed-rtos mbed
Revision 1:86705c6e0ab7, committed 2016-03-28
- 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 */