25 lines
709 B
C
25 lines
709 B
C
#ifndef __BSP_TIMEBASE_H
|
||
#define __BSP_TIMEBASE_H
|
||
|
||
|
||
#include "hk32f030m.h"
|
||
|
||
|
||
/********************基本定时器TIM参数定义,只限TIM6***************/
|
||
#define BASIC_TIM TIM6
|
||
#define BASIC_TIM_APBxClock_FUN RCC_APB1PeriphClockCmd
|
||
#define BASIC_TIM_CLK RCC_APB1Periph_TIM6
|
||
#define BASIC_TIM_Period (1000-1)
|
||
#define BASIC_TIM_Prescaler 31
|
||
#define BASIC_TIM_IRQ TIM6_IRQn
|
||
#define BASIC_TIM_IRQHandler TIM6_IRQHandler
|
||
|
||
/**************************函数声明********************************/
|
||
|
||
void BASIC_TIM_Init(void);
|
||
|
||
|
||
#endif /* __BSP_TIMEBASE_H */
|
||
|
||
|