Revert "add timer capture STM32"

This reverts commit 7a484f4d7665c533998d6893c21b69340038b5fc.
This commit is contained in:
pnb
2015-12-22 13:27:42 +01:00
parent 764c9ea887
commit 7d244d4d04
2 changed files with 232 additions and 340 deletions
File diff suppressed because it is too large Load Diff
+2 -8
View File
@@ -122,7 +122,6 @@ typedef enum
} stm32_tim_mode_t;
/* TIM Channel Modes */
typedef enum
@@ -136,19 +135,15 @@ typedef enum
/* MODES: */
STM32_TIM_CH_MODE_OUT_MASK = 0x06,
STM32_TIM_CH_MODE_IN_MASK = 0x10,
STM32_TIM_CH_MODE_MASK = 0x16,
STM32_TIM_CH_MODE_MASK = 0x06,
/* Output Compare Modes */
STM32_TIM_CH_OUTPWM = 0x04, /** Enable standard PWM mode, active high when counter < compare */
//STM32_TIM_CH_OUTCOMPARE = 0x06,
/* Input Compare Modes */
STM32_TIM_CH_INCAPTURE = 0x10,
// TODO other modes ... as PWM capture, ENCODER and Hall Sensor
//STM32_TIM_CH_INCAPTURE = 0x10,
//STM32_TIM_CH_INPWM = 0x20
//STM32_TIM_CH_DRIVE_OC -- open collector mode
@@ -176,7 +171,6 @@ struct stm32_tim_ops_s
void (*enableint)(FAR struct stm32_tim_dev_s *dev, int source);
void (*disableint)(FAR struct stm32_tim_dev_s *dev, int source);
void (*ackint)(FAR struct stm32_tim_dev_s *dev, int source);
int (*setcapturecfg)(FAR struct stm32_tim_dev_s *dev, uint8_t channel, uint8_t capt_filter, uint8_t capt_prescaler);
};
/************************************************************************************