fix indentation
This commit is contained in:
parent
be3ad3bc60
commit
f12f95c565
@ -5,7 +5,7 @@
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="247534021813489542" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings Cross ARM" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1427909152422737123" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings Cross ARM" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
@ -16,7 +16,7 @@
|
||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="365171440338633116" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings Cross ARM" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-1310271733897593549" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings Cross ARM" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
|
@ -106,7 +106,8 @@ void inverterStart(uint8_t freqOut, direction_t direction) {
|
||||
for (uint8_t i = 0; i < NUM_OF_TIMER; i++){
|
||||
timerSupport[i].slotCnt = 0;
|
||||
timerSupport[i].running = false;
|
||||
HAL_GPIO_WritePin(timerSupport[i].bridgePolarityPort, timerSupport[i].bridgePolarityPin, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(timerSupport[i].bridgePolarityPort,
|
||||
timerSupport[i].bridgePolarityPin, GPIO_PIN_RESET);
|
||||
__HAL_TIM_SET_AUTORELOAD(timerSupport[i].handle, slotWidth);
|
||||
__HAL_TIM_SET_COUNTER(timerSupport[i].handle, 0);
|
||||
}
|
||||
@ -125,7 +126,8 @@ void inverterStop() {
|
||||
for (uint8_t i = 0; i < NUM_OF_TIMER; i++){
|
||||
HAL_TIM_PWM_Stop_DMA(timerSupport[i].handle, timerSupport[i].channel);
|
||||
__HAL_TIM_DISABLE_IT(timerSupport[i].handle, TIM_IT_UPDATE);
|
||||
HAL_GPIO_WritePin(timerSupport[i].startMarkPort, timerSupport[i].startMarkPin, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(timerSupport[i].startMarkPort,
|
||||
timerSupport[i].startMarkPin, GPIO_PIN_RESET);
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,7 +137,8 @@ static void startPhase(uint8_t phaseIdx) {
|
||||
if (! timerSupport[timerIdx].running) {
|
||||
HAL_GPIO_WritePin(timerSupport[timerIdx].startMarkPort,
|
||||
timerSupport[timerIdx].startMarkPin, GPIO_PIN_SET);
|
||||
HAL_TIM_PWM_Start_DMA(timerSupport[timerIdx].handle, timerSupport[timerIdx].channel,
|
||||
HAL_TIM_PWM_Start_DMA(timerSupport[timerIdx].handle,
|
||||
timerSupport[timerIdx].channel,
|
||||
(uint32_t*)IV, NUM_OF_SINE_SLOT);
|
||||
__HAL_TIM_ENABLE_IT(timerSupport[timerIdx].handle, TIM_IT_UPDATE);
|
||||
timerSupport[timerIdx].running = true;
|
||||
@ -148,7 +151,8 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
|
||||
timerSupport[i].slotCnt++;
|
||||
if (timerSupport[i].slotCnt == NUM_OF_SINE_SLOT + 2) {
|
||||
timerSupport[i].slotCnt = 2;
|
||||
HAL_GPIO_TogglePin(timerSupport[i].bridgePolarityPort, timerSupport[i].bridgePolarityPin);
|
||||
HAL_GPIO_TogglePin(timerSupport[i].bridgePolarityPort,
|
||||
timerSupport[i].bridgePolarityPin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user