Добавлен файлы ow_port для реализации задержек и переключения пинов для конкретного МК

Реализована универсанльная функция дли переинициализации порта
This commit is contained in:
2025-02-06 15:21:36 +03:00
parent 586907b339
commit 95050988dd
8 changed files with 294 additions and 169 deletions

24
DS18B20/ow_port.h Normal file
View File

@@ -0,0 +1,24 @@
/**
******************************************************************************
* @file onewire.h
* @brief This file contains all the constants parameters for the OneWire
******************************************************************************
* @attention
* Usage:
* Uncomment LL Driver for HAL driver
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef ONEWIRE_PORT_H
#define ONEWIRE_PORT_H
/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"
#include "dwt.h"
/* OneWire Timings -----------------------------------------------------------*/
#define OneWireDelay_uw(_us_) DwtDelay_us(_us_)
/* Common Register -----------------------------------------------------------*/
#endif /* ONEWIRE_PORT_H */