Добавлен файлы ow_port для реализации задержек и переключения пинов для конкретного МК
Реализована универсанльная функция дли переинициализации порта
This commit is contained in:
24
DS18B20/ow_port.h
Normal file
24
DS18B20/ow_port.h
Normal 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 */
|
||||
Reference in New Issue
Block a user