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:
- 57:f3336e9eb1f2
- Parent:
- 45:26801179208e
- Child:
- 58:4f8f58ecb52a
--- a/DRV8323/DRV.cpp Thu Oct 10 15:03:12 2019 +0000
+++ b/DRV8323/DRV.cpp Wed Sep 22 08:36:54 2021 +0000
@@ -65,7 +65,8 @@
uint16_t val = (CSACR<<11) | (CSA_FET<<10) | (VREF_DIV<<9) | (LS_REF<<8) | (CSA_GAIN<<6) | (DIS_SEN<<5) | (CSA_CAL_A<<4) | (CSA_CAL_B<<3) | (CSA_CAL_C<<2) | SEN_LVL;
spi_write(val);
}
-
+
+
void DRV832x::print_faults(void)
{
uint16_t val1 = read_FSR1();
@@ -97,6 +98,10 @@
if(val2 & (1<<2)){printf("VGS_LB\n\r");}
if(val2 & (1<<1)){printf("VGS_HC\n\r");}
if(val2 & (1)){printf("VGS_LC\n\r");}
+
+
+
+
}
void DRV832x::enable_gd(void)