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.
Diff: Inverter/Inverter.cpp
- Revision:
- 7:dc5f27756e02
- Parent:
- 4:c023f7b6f462
- Child:
- 9:d7eb815cb057
--- a/Inverter/Inverter.cpp Sat Mar 12 19:55:52 2016 +0000
+++ b/Inverter/Inverter.cpp Tue Mar 29 01:05:46 2016 +0000
@@ -99,13 +99,13 @@
void Inverter::SampleCurrent(void){
// Dbg->write(1);
- //GPIOC->ODR ^= (1 << 4); //Toggle pin for debugging
+ GPIOC->ODR ^= (1 << 4); //Toggle pin for debugging
I_B = _I_Scale*((float) (ADC1->DR) - I_B_Offset);
I_C = _I_Scale*((float) (ADC2->DR)- I_C_Offset);
I_A = -I_B - I_C;
//DAC->DHR12R1 = ADC2->DR;
//DAC->DHR12R1 = TIM3->CNT>>2;//ADC2->DR; // pass ADC -> DAC, also clears EOC flag
ADC1->CR2 |= 0x40000000;
- //GPIOC->ODR ^= (1 << 4); //toggle pin for debugging
+ GPIOC->ODR ^= (1 << 4); //toggle pin for debugging
}