Skip to content

Commit 2c68a1c

Browse files
committed
Added Maxim 100
1 parent 4c111e2 commit 2c68a1c

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

hwconf/vesc/maxim/hw_maxim_100.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2026 Benjamin Vedder benjamin@vedder.se
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_MAXIM_100_H_
21+
#define HW_MAXIM_100_H_
22+
23+
#define HWMAXIM_100
24+
25+
#include "hw_maxim_core.h"
26+
27+
#endif /* HW_MAXIM_100_H_ */

hwconf/vesc/maxim/hw_maxim_core.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#define HW_NAME "Maxim_120_PH"
2929
#elif defined(HWMAXIM_150_PH)
3030
#define HW_NAME "Maxim_150_PH"
31+
#elif defined(HWMAXIM_100)
32+
#define HW_NAME "Maxim_100"
3133
#else
3234
#error "Must define hardware type"
3335
#endif
@@ -305,6 +307,10 @@
305307
#ifndef MCCONF_L_MAX_VOLTAGE
306308
#define MCCONF_L_MAX_VOLTAGE 112.0 // Maximum input voltage
307309
#endif
310+
#elif defined(HWMAXIM_100)
311+
#ifndef MCCONF_L_MAX_VOLTAGE
312+
#define MCCONF_L_MAX_VOLTAGE 94.0 // Maximum input voltage
313+
#endif
308314
#else
309315
#ifndef MCCONF_L_MAX_VOLTAGE
310316
#define MCCONF_L_MAX_VOLTAGE 140.0 // Maximum input voltage
@@ -347,6 +353,11 @@
347353
#define HW_LIM_CURRENT_IN -650.0, 650.0
348354
#define HW_LIM_CURRENT_ABS 0.0, 900.0
349355
#define HW_LIM_VIN 20.0, 115.0
356+
#elif defined(HWMAXIM_100)
357+
#define HW_LIM_CURRENT -650.0, 650.0
358+
#define HW_LIM_CURRENT_IN -650.0, 650.0
359+
#define HW_LIM_CURRENT_ABS 0.0, 900.0
360+
#define HW_LIM_VIN 20.0, 97.0
350361
#else
351362
#define HW_LIM_CURRENT -450.0, 450.0
352363
#define HW_LIM_CURRENT_IN -450.0, 450.0

package_firmware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
package_dict["RSR_DD_V2"] = [['RSR_DD_V2', default_name]]
183183
package_dict["RSR_DD_V2.1"] = [['RSR_DD_V2.1', default_name]]
184184
package_dict["ITR_X1"] = [['itr_x1', default_name]]
185+
package_dict["Maxim_100"] = [['maxim_100', default_name]]
185186
package_dict["Maxim_120"] = [['maxim_120', default_name],
186187
['maxim_120_no_limits', no_limits_name]]
187188
package_dict["Maximp_120"] = [['maximp_120', default_name],

0 commit comments

Comments
 (0)