Fork and fix for mwork
Dependencies: mbed-dev-f303 FastPWM3 millis
Config/hw_config.h@27:501fee691e0e, 2017-05-17 (annotated)
- Committer:
- benkatz
- Date:
- Wed May 17 14:53:22 2017 +0000
- Revision:
- 27:501fee691e0e
- Parent:
- 22:60276ba87ac6
- Child:
- 37:c0f352d6e8e3
Setting PWM ARR value in config file now propagates everywhere.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
benkatz | 20:bf9ea5125d52 | 1 | #ifndef HW_CONFIG_H |
benkatz | 20:bf9ea5125d52 | 2 | #define HW_CONFIG_H |
benkatz | 20:bf9ea5125d52 | 3 | |
benkatz | 20:bf9ea5125d52 | 4 | #define PIN_U PA_10 |
benkatz | 20:bf9ea5125d52 | 5 | #define PIN_V PA_9 |
benkatz | 20:bf9ea5125d52 | 6 | #define PIN_W PA_8 |
benkatz | 22:60276ba87ac6 | 7 | #define ENABLE_PIN PA_11 // Enable gate drive pin |
benkatz | 22:60276ba87ac6 | 8 | #define I_SCALE 0.02014160156f // Amps per A/D Count |
benkatz | 22:60276ba87ac6 | 9 | #define DTC_MAX 0.95f // Max phase duty cycle |
benkatz | 22:60276ba87ac6 | 10 | #define DTC_MIN 0.05f // Min phase duty cycle |
benkatz | 27:501fee691e0e | 11 | #define PWM_ARR 0x8CA /// timer autoreload value |
benkatz | 20:bf9ea5125d52 | 12 | |
benkatz | 20:bf9ea5125d52 | 13 | |
benkatz | 20:bf9ea5125d52 | 14 | #endif |