File tree Expand file tree Collapse file tree 4 files changed +69
-3
lines changed
Expand file tree Collapse file tree 4 files changed +69
-3
lines changed Original file line number Diff line number Diff line change 2424 #define HW_NAME "STR500"
2525#elif defined(HWSTR500_01 ) // 0.1 mOhm shunts
2626 #define HW_NAME "STR500_01"
27+ #elif defined(HWSTR500_HP )
28+ #define HW_NAME "STR500_HP"
2729#else
2830 #error "Must define hardware type"
2931#endif
113115#define ADC_IND_CURR1 0
114116#define ADC_IND_CURR2 1
115117#define ADC_IND_CURR3 2
116- #define ADC_IND_EXT5 11
117118#define ADC_IND_EXT 6
118119#define ADC_IND_EXT2 7
119120#define ADC_IND_SHUTDOWN 10
120121#define ADC_IND_EXT3 8
121- #define ADC_IND_EXT6 9
122122#define ADC_IND_VREFINT 12
123123#define ADC_IND_ADC_MUX 15
124124#define ADC_IND_EXT4 16
125125
126126#define ADC_IND_TEMP_MOTOR 18
127- #define ADC_IND_VIN_SENS 19
128127#define ADC_IND_TEMP_MOS 20
129128#define ADC_IND_TEMP_MOS_2 21
130129#define ADC_IND_NC 22
131130#define ADC_IND_EXT8 23
132131#define ADC_IND_EXT7 24
133132#define ADC_IND_TEMP_MOS_3 25
134133
134+ #ifdef HWSTR500_HP
135+ #define ADC_IND_EXT5 9
136+ #define ADC_IND_EXT6 19
137+ #define ADC_IND_VIN_SENS 11
138+ #else
139+ #define ADC_IND_EXT5 11
140+ #define ADC_IND_EXT6 9
141+ #define ADC_IND_VIN_SENS 19
142+ #endif
143+
135144// ADC macros and settings
136145
137146// Component parameters (can be overridden)
Original file line number Diff line number Diff line change 1+ /*
2+ Copyright 2018 Benjamin Vedder [email protected] 3+
4+ This file is part of the VESC firmware.
5+
6+ The VESC firmware is free software: you can redistribute it and/or modify
7+ it under the terms of the GNU General Public License as published by
8+ the Free Software Foundation, either version 3 of the License, or
9+ (at your option) any later version.
10+
11+ The VESC firmware is distributed in the hope that it will be useful,
12+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ GNU General Public License for more details.
15+
16+ You should have received a copy of the GNU General Public License
17+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
20+ #ifndef HW_STR500_HP_H_
21+ #define HW_STR500_HP_H_
22+
23+ #define HWSTR500_HP
24+
25+ #include "hw_str500_core.h"
26+
27+ #endif /* HW_STR500_HP_H_ */
Original file line number Diff line number Diff line change 1+ /*
2+ Copyright 2018 Benjamin Vedder [email protected] 3+
4+ This file is part of the VESC firmware.
5+
6+ The VESC firmware is free software: you can redistribute it and/or modify
7+ it under the terms of the GNU General Public License as published by
8+ the Free Software Foundation, either version 3 of the License, or
9+ (at your option) any later version.
10+
11+ The VESC firmware is distributed in the hope that it will be useful,
12+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ GNU General Public License for more details.
15+
16+ You should have received a copy of the GNU General Public License
17+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
20+ #ifndef HW_STR500_HP_NO_LIMITS_H_
21+ #define HW_STR500_HP_NO_LIMITS_H_
22+
23+ #define HWSTR500_HP
24+ #define DISABLE_HW_LIMITS
25+
26+ #include "hw_str500_core.h"
27+
28+ #endif /* HW_STR500_HP_NO_LIMITS_H_ */
Original file line number Diff line number Diff line change @@ -177,6 +177,8 @@ def get_git_revision_short_hash() -> str:
177177package_dict ["STR500" ] = [['str500' , default_name ],
178178 ['str500_no_limits' , no_limits_name ]]
179179package_dict ["STR500_01" ] = [['str500_01' , default_name ]]
180+ package_dict ["STR500_HP" ] = [['str500_hp' , default_name ],
181+ ['str500_hp_no_limits' , no_limits_name ]]
180182package_dict ["RB" ] = [['rb' , default_name ]]
181183package_dict ["STR365" ] = [['str365' , default_name ],
182184 ['str365_no_limits' , no_limits_name ]]
You can’t perform that action at this time.
0 commit comments