библиотека для stm32f103
This commit is contained in:
@@ -11,9 +11,19 @@
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "stm32f1xx_hal.h"
|
||||
#include "dwt.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 -----------------------------------------------------------*/
|
||||
#define OneWire_Delay_uw(_us_) DwtDelay_us(_us_)
|
||||
void OneWire_Delay_uw(uint32_t us);
|
||||
/* Common Register -----------------------------------------------------------*/
|
||||
#endif /* ONEWIRE_PORT_H */
|
||||
|
||||
Reference in New Issue
Block a user