123

Dependencies:   mbed-dev-f303 FastPWM3

Config/hw_config.h

Committer:
shaorui
Date:
2021-03-29
Revision:
50:9d762c5d05c3
Parent:
37:c0f352d6e8e3

File content as of revision 50:9d762c5d05c3:

#ifndef HW_CONFIG_H
#define HW_CONFIG_H

#define PIN_U PA_10
#define PIN_V PA_9
#define PIN_W PA_8
#define ENABLE_PIN PA_11        // Enable gate drive pin
#define LED         PC_5        // LED Pin
#define BRAKE1   PA_4  //brake1 pin
#define BRAKE2   PA_6  //brake2 pin
#define I_SCALE 0.02014160156f  // Amps per A/D Count
#define V_SCALE 0.00884f        // Bus volts per A/D Count
#define DTC_MAX 0.95f          // Max phase duty cycle
#define DTC_MIN 0.05f          // Min phase duty cycle
#define PWM_ARR 0x8CA           /// timer autoreload value



#endif