miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
config.h
Go to the documentation of this file.
1/**************************************************************************/
9#ifndef MINIFOC__CONFIG_H_
10#define MINIFOC__CONFIG_H_
11
13#define VBUS 8.0f
15#define POLAR_PAIRS 7
17#define ENCODER_RESO 4096
19#define CALI_TORQUE 0.5f
21#define USE_SVPWM 1
22
24#define UART_BAUDRATE 512000
26#define PWM_FREQUENCY 20
28#define TIM2_FREQUENCY 8
30#define TIM13_FREQUENCY 100
32#define SPEED_UP_FREQ 200
34#define SPI_PRESCALE SPI_PSC_16
35
37#define UART_PRIORITY 1
39#define TIM2_PRIORITY 2
41#define TIM13_PRIORITY 3
42
44#define FMC_WRITE_START_ADDR 0x08007C00UL
45
46#endif //MINIFOC__CONFIG_H_