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: mbed-dev-f303 FastPWM3
Diff: DRV8323/DRV.cpp
- Revision:
- 45:26801179208e
- Parent:
- 44:8040fa2fcb0d
--- a/DRV8323/DRV.cpp Mon Jun 11 00:04:06 2018 +0000
+++ b/DRV8323/DRV.cpp Wed Jun 27 03:44:44 2018 +0000
@@ -109,4 +109,10 @@
{
uint16_t val = (read_register(DCR)) | (0x1<<2);
write_register(DCR, val);
+ }
+
+void DRV832x::calibrate(void)
+{
+ uint16_t val = 0x1<<4 + 0x1<<3 + 0x1<<2;
+ write_register(CSACR, val);
}
\ No newline at end of file