Add first timer files
This commit is contained in:
10
Core/Include/Reg/SHAL_TIM_REG.h
Normal file
10
Core/Include/Reg/SHAL_TIM_REG.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef SHAL_TIM_REG
|
||||
#define SHAL_TIM_REG
|
||||
|
||||
|
||||
enum class S_TIM{ //Sample
|
||||
TIM1 = 0xFFA0,
|
||||
TIM2,
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -8,6 +8,8 @@
|
||||
#ifndef SHAL_H
|
||||
#define SHAL_H
|
||||
|
||||
#define STM32F072xB
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
8
Core/Include/SHAL_TIM.h
Normal file
8
Core/Include/SHAL_TIM.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef SHAL_TIM_H
|
||||
#define SHAL_TIM_H
|
||||
|
||||
#include "Reg/SHAL_TIM_REG.h"
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "SHAL.h"
|
||||
#include "stm32f0xx.h" // Or your device header
|
||||
|
||||
volatile int prev_button = false;
|
||||
|
||||
Reference in New Issue
Block a user