You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#ifndef __ENCODER_H |
|
#define __ENCODER_H |
|
#include <sys.h> |
|
|
|
|
|
#define ENCODER_TIM_PERIOD (u16)(65535) |
|
void Encoder_Init_TIM2(void); |
|
void Encoder_Init_TIM4(void); |
|
int Read_Encoder(u8 TIMX); |
|
void TIM4_IRQHandler(void); |
|
void TIM2_IRQHandler(void); |
|
|
|
#endif
|
|
|