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.
Dependents: BLDC_mainProgram STMF302R8_MotorDrive HelloWorld_IHM07M1
Revision 4:f56d1fb53d9b, committed 2016-10-12
- Comitter:
- avilei
- Date:
- Wed Oct 12 08:16:28 2016 +0000
- Parent:
- 3:a4b4a8e3f2a0
- Commit message:
- Make members protected to allow C++ inheritance
Changed in this revision
| BLDCmotorDriver.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/BLDCmotorDriver.h Mon Jun 01 13:47:23 2015 +0000
+++ b/BLDCmotorDriver.h Wed Oct 12 08:16:28 2016 +0000
@@ -11,7 +11,7 @@
int getSector();
void ispis();
- private:
+ protected:
PwmOut GH_A, GH_B, GH_C;
DigitalOut GL_A, GL_B, GL_C; // Low-side gates are never PWM driven
InterruptIn H1; // InterruptIn can be used on all pins except p19 and p20
X-NUCLEO-IHM07M1 Brushless DC Motor Driver