6 changed files with 98 additions and 1 deletions
@ -0,0 +1,15 @@ |
|||
cmake_minimum_required(VERSION 3.10) |
|||
|
|||
set(COMMON_CMAKE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../library/CMakeLists.txt") |
|||
|
|||
if(EXISTS ${COMMON_CMAKE_PATH}) |
|||
include(${COMMON_CMAKE_PATH}) |
|||
else() |
|||
message(FATAL_ERROR "Cannot find common build logic at ${COMMON_CMAKE_PATH}") |
|||
endif() |
|||
|
|||
if(TARGET peripheral) |
|||
target_link_libraries(optional PUBLIC peripheral) |
|||
else() |
|||
message(WARNING "[optional] Dependency 'peripheral' not found.") |
|||
endif() |
|||
@ -0,0 +1,78 @@ |
|||
/******************************************************************************
|
|||
|
|||
版权所有 (C), 2018-2099, Radkil |
|||
|
|||
****************************************************************************** |
|||
文 件 名 : msp_TI5MOTOR.c |
|||
版 本 号 : 初稿 |
|||
作 者 : radkil |
|||
生成日期 : 2026年6月8日 |
|||
最近修改 : |
|||
功能描述 : TI5电机 |
|||
|
|||
修改历史 : |
|||
1.日 期 : 2026年6月8日 |
|||
作 者 : radkil |
|||
修改内容 : 创建文件 |
|||
|
|||
******************************************************************************/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 外部变量说明 * |
|||
*----------------------------------------------*/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 外部函数原型说明 * |
|||
*----------------------------------------------*/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 内部函数原型说明 * |
|||
*----------------------------------------------*/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 全局变量 * |
|||
*----------------------------------------------*/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 模块级变量 * |
|||
*----------------------------------------------*/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 常量定义 * |
|||
*----------------------------------------------*/ |
|||
|
|||
/*----------------------------------------------*
|
|||
* 宏定义 * |
|||
*----------------------------------------------*/ |
|||
|
|||
//void Motor_ClearFault(uint8_t id, FDCANHandler *Ti5_Motor_Controller,
|
|||
// int WaitTime)
|
|||
//{
|
|||
// OneByteCommand(id, 0x0B, Ti5_Motor_Controller, WaitTime);
|
|||
//}
|
|||
//
|
|||
//void Motor_GetFaultState(uint8_t id, FDCANHandler *Ti5_Motor_Controller,
|
|||
//int WaitTime)
|
|||
//{
|
|||
// OneByteCommand(id, 0x0A, Ti5_Motor_Controller, WaitTime); // set motor stop mode
|
|||
//
|
|||
//}
|
|||
//
|
|||
//void GetCSPByCommand(uint8_t id, FDCANHandler *Ti5_Motor_Controller,
|
|||
// int WaitTime)
|
|||
//{
|
|||
// OneByteCommand(id, 0x41, Ti5_Motor_Controller, WaitTime);
|
|||
//}
|
|||
//
|
|||
//void Motor_SetVelocityModeAndTargetVelocity(uint8_t id,
|
|||
// int32_t targetSpeed,
|
|||
// FDCANHandler *Ti5_Motor_Controller,
|
|||
// int WaitTime)
|
|||
//{
|
|||
// FiveByteCommand(id, 0x1d, targetSpeed, Ti5_Motor_Controller, WaitTime); //Motor_SetVelocityModeAndTargetVelocity
|
|||
//}
|
|||
|
|||
void TI5MOTOR_Init(void) |
|||
{ |
|||
return; |
|||
} |
|||
Loading…
Reference in new issue