Структуризирован PowerMonitor: сделано разделение на быстрие и медленные обработки

- Быстрые делаются в прерывании и заполняют с fast Напряжениями/Токами
- Медленные делаются в main, с каким-то периодом и работают с slow и mean Напряжениями/Токами/Температурами
This commit is contained in:
2025-11-17 12:38:50 +03:00
parent b236975f9b
commit e69eb0c8c9
16 changed files with 434 additions and 165 deletions

View File

@@ -17,8 +17,8 @@
<TargetCommonOption>
<Device>STM32F427ZGTx</Device>
<Vendor>STMicroelectronics</Vendor>
<PackID>Keil.STM32F4xx_DFP.2.16.0</PackID>
<PackURL>http://www.keil.com/pack/</PackURL>
<PackID>Keil.STM32F4xx_DFP.2.17.1</PackID>
<PackURL>https://www.keil.com/pack/</PackURL>
<Cpu>IRAM(0x20000000-0x2002FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) FPU2 CPUTYPE("Cortex-M4") TZ</Cpu>
<FlashUtilSpec></FlashUtilSpec>
<StartupFile></StartupFile>
@@ -515,6 +515,16 @@
<FileType>5</FileType>
<FilePath>..\Core\PowerMonitor\power_monitor.h</FilePath>
</File>
<File>
<FileName>zero_cross.c</FileName>
<FileType>1</FileType>
<FilePath>..\Core\PowerMonitor\zero_cross.c</FilePath>
</File>
<File>
<FileName>zero_cross.h</FileName>
<FileType>5</FileType>
<FilePath>..\Core\PowerMonitor\zero_cross.h</FilePath>
</File>
<File>
<FileName>adc_tools.c</FileName>
<FileType>1</FileType>
@@ -526,14 +536,24 @@
<FilePath>..\Core\PowerMonitor\adc_tools.h</FilePath>
</File>
<File>
<FileName>zero_cross.c</FileName>
<FileName>phases_transform.c</FileName>
<FileType>1</FileType>
<FilePath>..\Core\PowerMonitor\zero_cross.c</FilePath>
<FilePath>..\Core\PowerMonitor\phases_transform.c</FilePath>
</File>
<File>
<FileName>zero_cross.h</FileName>
<FileName>phases_transform.h</FileName>
<FileType>5</FileType>
<FilePath>..\Core\PowerMonitor\zero_cross.h</FilePath>
<FilePath>..\Core\PowerMonitor\phases_transform.h</FilePath>
</File>
<File>
<FileName>power_protect.c</FileName>
<FileType>1</FileType>
<FilePath>..\Core\PowerMonitor\power_protect.c</FilePath>
</File>
<File>
<FileName>power_protect.h</FileName>
<FileType>5</FileType>
<FilePath>..\Core\PowerMonitor\power_protect.h</FilePath>
</File>
</Files>
</Group>