30 lines
993 B
C
30 lines
993 B
C
/**
|
|
******************************************************************************
|
|
* @file ow_port.h
|
|
* @brief This file includes the driver for port for OneWire purposes
|
|
******************************************************************************
|
|
*/
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef ONEWIRE_PORT_H
|
|
#define ONEWIRE_PORT_H
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "stm32f1xx_hal.h"
|
|
|
|
/* I/O Port ------------------------------------------------------------------*/
|
|
//#define LL_Driver
|
|
#define CMSIS_Driver
|
|
|
|
|
|
#define DS_GPIO_Port GPIOB
|
|
#define DS_Pin_Numb 0
|
|
#define DS_Pin (1<<DS_Pin_Numb)
|
|
#define OW_TIM TIM3
|
|
#define OW_TIM_1US_PERIOD 24
|
|
|
|
/* OneWire Timings -----------------------------------------------------------*/
|
|
void OneWire_Delay_uw(uint32_t us);
|
|
/* Common Register -----------------------------------------------------------*/
|
|
#endif /* ONEWIRE_PORT_H */
|