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@23:5cd74e296f59, 2017-06-22 (annotated)
- Committer:
- tonnyleonard
- Date:
- Thu Jun 22 10:41:57 2017 +0000
- Revision:
- 23:5cd74e296f59
- Parent:
- 0:789510d98ade
Correct adc2 calibration offset and the dac1 calibration factor and offset, remove some junk comments
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 |