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.
error.h
Go to the documentation of this file.
1
/**************************************************************************/
9
#ifndef MINIFOC__ERROR_H_
10
#define MINIFOC__ERROR_H_
11
12
#include "
config.h
"
13
14
#if TIM13_FREQUENCY > (SPEED_UP_FREQ / 2)
15
#error "you can't set pid frequency higher than update frequency"
16
#endif
17
18
#if TIM2_FREQUENCY > PWM_FREQUENCY
19
#error "you can't set foc loop frequency higher than pwm frequency"
20
#endif
21
22
#if TIM13_FREQUENCY > (TIM2_FREQUENCY * 1000)
23
#error "you can't set pid frequency higher than foc loop frequency"
24
#endif
25
26
#if FMC_WRITE_START_ADDR < 0x08004000UL
27
#error "user flash lash takes up too much space, which makes the program space insufficient"
28
#endif
29
30
#endif
//MINIFOC__ERROR_H_
config.h
used to place important parameter configurations for users
Generated by
1.9.4