библиотека для stm32f103

This commit is contained in:
2025-06-20 14:46:25 +03:00
parent 0689046c85
commit c2dca42be6
15 changed files with 118 additions and 1090 deletions

View File

@@ -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 */