diff --git a/Core/Include/Reg/SHAL_TIM_REG.h b/Core/Include/Reg/SHAL_TIM_REG.h new file mode 100644 index 0000000..1809ef5 --- /dev/null +++ b/Core/Include/Reg/SHAL_TIM_REG.h @@ -0,0 +1,10 @@ +#ifndef SHAL_TIM_REG +#define SHAL_TIM_REG + + +enum class S_TIM{ //Sample + TIM1 = 0xFFA0, + TIM2, +}; + +#endif \ No newline at end of file diff --git a/Core/Include/SHAL.h b/Core/Include/SHAL.h index ba6edaf..9699f8a 100644 --- a/Core/Include/SHAL.h +++ b/Core/Include/SHAL.h @@ -8,6 +8,8 @@ #ifndef SHAL_H #define SHAL_H +#define STM32F072xB + diff --git a/Core/Include/SHAL_TIM.h b/Core/Include/SHAL_TIM.h new file mode 100644 index 0000000..5baca1b --- /dev/null +++ b/Core/Include/SHAL_TIM.h @@ -0,0 +1,8 @@ +#ifndef SHAL_TIM_H +#define SHAL_TIM_H + +#include "Reg/SHAL_TIM_REG.h" + + + +#endif \ No newline at end of file diff --git a/Core/Src/main.cpp b/Core/Src/main.cpp index cba3293..dad7f2c 100644 --- a/Core/Src/main.cpp +++ b/Core/Src/main.cpp @@ -1,3 +1,4 @@ +#include "SHAL.h" #include "stm32f0xx.h" // Or your device header volatile int prev_button = false;