добавлена реализация onewire через uart и переделана структуруа шины OneWire и инциализация

Теперь при выборе UART, в функцию Dallas_BusFirstInit передается hdallas, huart, ow, ds

А при выборе GPIO ножки: hdallas, gpiox, gpio_pin, ow, ds

но надо как-то структуруизировать дальше
This commit is contained in:
2025-06-30 18:34:17 +03:00
parent 175bcd539f
commit fa32d653e8
14 changed files with 373 additions and 61 deletions

View File

@@ -341,7 +341,7 @@
<MiscControls></MiscControls>
<Define>USE_HAL_DRIVER,STM32F103xB</Define>
<Undefine></Undefine>
<IncludePath>../Core/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F1xx/Include;../Drivers/CMSIS/Include;..\..\DS18B20</IncludePath>
<IncludePath>../Core/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F1xx/Include;../Drivers/CMSIS/Include;../../DS18B20</IncludePath>
</VariousControls>
</Cads>
<Aads>
@@ -708,6 +708,16 @@
<FileType>5</FileType>
<FilePath>..\..\DS18B20\ow_port.h</FilePath>
</File>
<File>
<FileName>onewire_uart.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\DS18B20\onewire_uart.c</FilePath>
</File>
<File>
<FileName>onewire_uart.h</FileName>
<FileType>5</FileType>
<FilePath>..\..\DS18B20\onewire_uart.h</FilePath>
</File>
</Files>
</Group>
<Group>