A program to monitor some parameters for a motor
Dependencies: mbed-dev BufferSerial
Thanks to David Lowe for https://developer.mbed.org/users/gregeric/code/Nucleo_Hello_Encoder/ which I adapted for the use of TIM2 32bit timer as an encoder reader on the Nucleo L432KC board.
Encoder/Encoder.h@0:789510d98ade, 2017-03-08 (annotated)
- Committer:
- tonnyleonard
- Date:
- Wed Mar 08 16:59:48 2017 +0000
- Revision:
- 0:789510d98ade
Adapting attempt to L432KC
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tonnyleonard | 0:789510d98ade | 1 | #ifndef ENCODER_H |
tonnyleonard | 0:789510d98ade | 2 | #define ENCODER_H |
tonnyleonard | 0:789510d98ade | 3 | |
tonnyleonard | 0:789510d98ade | 4 | void EncoderInit(TIM_Encoder_InitTypeDef * encoder, TIM_HandleTypeDef * timer, TIM_TypeDef * TIMx, uint32_t maxcount, uint32_t encmode); |
tonnyleonard | 0:789510d98ade | 5 | |
tonnyleonard | 0:789510d98ade | 6 | #endif |