Fork and fix for mwork
Dependencies: mbed-dev-f303 FastPWM3 millis
Diff: DRV8323/DRV.cpp
- Revision:
- 45:26801179208e
- Parent:
- 44:8040fa2fcb0d
- Child:
- 53:349304b6d937
diff -r 8040fa2fcb0d -r 26801179208e DRV8323/DRV.cpp --- 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