mirror of https://github.com/rusefi/bldc.git
[HW][Trampa] Move 75_300 to dedicated directory and use `core` approach
This commit is contained in:
parent
f926673417
commit
8d6112e9c0
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Copyright 2018 Benjamin Vedder benjamin@vedder.se
|
||||
|
||||
This file is part of the VESC firmware.
|
||||
|
||||
The VESC firmware is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
The VESC firmware is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_75_300_H_
|
||||
#define HW_75_300_H_
|
||||
|
||||
#define HW75_300_REV_1
|
||||
|
||||
#include "hw_75_300_core.h"
|
||||
|
||||
#endif /* HW_75_300_H_ */
|
|
@ -17,15 +17,17 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_75_300_H_
|
||||
#define HW_75_300_H_
|
||||
#ifndef HW_75_300_CORE_H_
|
||||
#define HW_75_300_CORE_H_
|
||||
|
||||
#ifdef HW75_300_REV_3
|
||||
#define HW_NAME "75_300_R3"
|
||||
#define HW_NAME "75_300_R3"
|
||||
#elif defined(HW75_300_REV_2)
|
||||
#define HW_NAME "75_300_R2"
|
||||
#define HW_NAME "75_300_R2"
|
||||
#elif defined(HW75_300_REV_1)
|
||||
#define HW_NAME "75_300"
|
||||
#else
|
||||
#define HW_NAME "75_300"
|
||||
#error "Must define hardware type"
|
||||
#endif
|
||||
|
||||
// HW properties
|
||||
|
@ -308,4 +310,4 @@
|
|||
// HW-specific functions
|
||||
float hw75_300_get_temp(void);
|
||||
|
||||
#endif /* HW_75_300_H_ */
|
||||
#endif /* HW_75_300_CORE_H_ */
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Copyright 2018 Benjamin Vedder benjamin@vedder.se
|
||||
|
||||
This file is part of the VESC firmware.
|
||||
|
||||
The VESC firmware is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
The VESC firmware is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_75_300_R2_H_
|
||||
#define HW_75_300_R2_H_
|
||||
|
||||
#define HW75_300_REV_2
|
||||
|
||||
#include "hw_75_300_core.h"
|
||||
|
||||
#endif /* HW_75_300_R2_H_ */
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Copyright 2018 Benjamin Vedder benjamin@vedder.se
|
||||
|
||||
This file is part of the VESC firmware.
|
||||
|
||||
The VESC firmware is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
The VESC firmware is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef HW_75_300_R3_H_
|
||||
#define HW_75_300_R3_H_
|
||||
|
||||
#define HW75_300_REV_3
|
||||
|
||||
#include "hw_75_300_core.h"
|
||||
|
||||
#endif /* HW_75_300_R3_H_ */
|
Loading…
Reference in New Issue