2023-07-04 15:32:46 +03:00
|
|
|
let path = require('path');
|
|
|
|
|
|
|
|
|
|
let device = "am243x";
|
|
|
|
|
|
|
|
|
|
const files = {
|
|
|
|
|
common: [
|
|
|
|
|
"tamagawa_drv.c",
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const filedirs = {
|
|
|
|
|
common: [
|
2023-07-13 12:53:20 +03:00
|
|
|
"${MOTOR_CONTROL_SDK_PATH}/source/position_sense/tamagawa/driver",
|
2023-07-04 15:32:46 +03:00
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const includes = {
|
|
|
|
|
common: [
|
2023-07-13 12:53:20 +03:00
|
|
|
"${MOTOR_CONTROL_SDK_PATH}/source/position_sense/tamagawa/include",
|
2023-07-04 15:32:46 +03:00
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const buildOptionCombos = [
|
|
|
|
|
{ device: device, cpu: "r5f", cgt: "ti-arm-clang"},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
function getComponentProperty() {
|
|
|
|
|
let property = {};
|
|
|
|
|
|
|
|
|
|
property.dirPath = path.resolve(__dirname, "..");
|
|
|
|
|
property.type = "library";
|
|
|
|
|
property.name = "motorcontrol_tamagawa";
|
|
|
|
|
property.isInternal = false;
|
|
|
|
|
property.buildOptionCombos = buildOptionCombos;
|
|
|
|
|
|
|
|
|
|
return property;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getComponentBuildProperty(buildOption) {
|
|
|
|
|
let build_property = {};
|
|
|
|
|
|
|
|
|
|
build_property.files = files;
|
|
|
|
|
build_property.filedirs = filedirs;
|
|
|
|
|
build_property.includes = includes;
|
|
|
|
|
build_property.projecspecFileAction = "link";
|
|
|
|
|
|
|
|
|
|
return build_property;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
getComponentProperty,
|
|
|
|
|
getComponentBuildProperty,
|
|
|
|
|
};
|