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: Inverter/Inverter.cpp
- Revision:
- 10:370851e6e132
- Parent:
- 9:d7eb815cb057
- Child:
- 14:80ce59119d93
--- a/Inverter/Inverter.cpp Tue May 10 01:15:57 2016 +0000 +++ b/Inverter/Inverter.cpp Thu May 12 05:02:52 2016 +0000 @@ -58,6 +58,8 @@ DAC->CR |= 0x00000001; // DAC control reg, both channels ON GPIOA->MODER |= 0x00000300; // PA04 as analog output + + //Enabled pin must be on for current sensors to turn on EnableInverter(); SetDTC(0.0f, 0.0f, 0.0f); wait(.2);