nambah buat eksternal
Dependencies: mbed encoderKRAI Motor_new
Diff: encoderHAL/encoderHAL.cpp
- Revision:
- 1:bbe0769f00e9
- Parent:
- 0:49e87dcad299
--- a/encoderHAL/encoderHAL.cpp Fri Jun 18 11:04:08 2021 +0000 +++ b/encoderHAL/encoderHAL.cpp Mon Jun 21 07:48:27 2021 +0000 @@ -68,13 +68,13 @@ TIM4->CNT = 0; break; - case TIM5_BASE : - TIM5->CNT = 0; - break; + //case TIM5_BASE : +// TIM5->CNT = 0; +// break; - case TIM8_BASE : - TIM8->CNT = 0; - break; +// case TIM8_BASE : +// TIM8->CNT = 0; +// break; } } else{ @@ -91,12 +91,12 @@ case TIM4_BASE : return (int32_t)count; - - case TIM5_BASE : - return (int32_t)count; - - case TIM8_BASE : - return (int32_t)count; + // +// case TIM5_BASE : +// return (int32_t)count; +// +// case TIM8_BASE : +// return (int32_t)count; } }