12 changed files with 233 additions and 159 deletions
-
4.settings/language.settings.xml
-
2Core/Inc/stm32f4xx_it.h
-
3Core/Inc/usart.h
-
7Core/Src/dma.c
-
1Core/Src/main.c
-
30Core/Src/stm32f4xx_it.c
-
44Core/Src/usart.c
-
28a8000_cliptip_module.ioc
-
2sdk
-
12usrc/board.h
-
139usrc/main.cpp
-
52usrc/project_configs.h
@ -1 +1 @@ |
|||||
Subproject commit af685a17a8fd229ca4773a9c62949db89369c55f |
|
||||
|
Subproject commit fbe10eeb6c72a4419f1e05c745bca2b7518e54e8 |
@ -0,0 +1,12 @@ |
|||||
|
#pragma once |
||||
|
|
||||
|
// MOTOR1 |
||||
|
#define TMC_MOTOR_SPI hspi1 |
||||
|
#define TMC5130_MOTOR_NUM 1 |
||||
|
#define MOTOR0_CSN PA4 |
||||
|
#define MOTOR0_ENN PD0 |
||||
|
#define MOTOR1_SPI_MODE_SELECT PinNull |
||||
|
|
||||
|
#define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK" |
||||
|
|
||||
|
#define BOARD_ID 2 |
@ -1,43 +1,21 @@ |
|||||
#pragma once |
#pragma once |
||||
|
#define PC_VERSION "v1.0.1" |
||||
|
#define PC_MANUFACTURER "http://www.iflytop.com/" |
||||
|
#define PC_PROJECT_NAME "a8000_cliptip_module" |
||||
|
#define PC_IFLYTOP_ENABLE_OS 1 |
||||
|
|
||||
#define VERSION "v1.0.0" |
|
||||
#define MANUFACTURER "http://www.iflytop.com/" |
|
||||
#define PROJECT_NAME "a8000_cliptip_module" |
|
||||
#define DEBUG_UART huart1 |
|
||||
#define DEBUG_LIGHT_GPIO PE2 |
|
||||
|
#define PC_DEBUG_UART huart1 |
||||
|
#define PC_DEBUG_UART_DMA_HANDLER hdma_usart1_rx |
||||
|
#define PC_DEBUG_UART_RX_BUF_SIZE 1024 |
||||
|
#define PC_DEBUG_LIGHT_GPIO PE2 |
||||
|
|
||||
#define DELAY_US_TIMER htim6 // US延时定时器 |
|
||||
#define TIM_IRQ_SCHEDULER_TIMER htim7 // 中断定时器中断调度器 |
|
||||
#define IFLTYOP_ZTICKET_TIMER TIM11 // 系统ticket定时器 |
|
||||
|
#define PC_SYS_DELAY_US_TIMER htim6 // US延时定时器 |
||||
|
#define PC_SYS_ZTICKET_TIMER TIM11 // 系统ticket定时器 |
||||
|
#define PC_SYS_TIM_IRQ_SCHEDULER_TIMER htim7 // 中断定时器中断调度器 |
||||
|
|
||||
#define IFLYTOP_ENABLE_OS 1 |
|
||||
#define IFLYTOP_PREEMPTPRIORITY_DEFAULT 5 |
|
||||
|
#define PC_IRQ_PREEMPTPRIORITY_DEFAULT 5 |
||||
|
|
||||
|
#define PC_NVS_ENABLE 1 |
||||
|
#define PC_NVS_CONFIG_FLASH_SECTOR 8 |
||||
|
|
||||
/****************************************FLASH***************************************/ |
|
||||
#define IFLYTOP_NVS_CONFIG_FLASH_SECTOR 8 |
|
||||
/*********************************************************************************/ |
|
||||
|
|
||||
// MOTOR1 |
|
||||
#define TMC_MOTOR_SPI hspi1 |
|
||||
#define TMC5130_MOTOR_NUM 1 |
|
||||
#define MOTOR0_CSN PA4 |
|
||||
#define MOTOR0_ENN PD0 |
|
||||
#define MOTOR1_SPI_MODE_SELECT PinNull |
|
||||
|
|
||||
#define MOTOR_CFG_FLASH_MARK "MOTOR_CFG_FLASH_MARK" |
|
||||
|
|
||||
#define BOARD_ID 2 |
|
||||
|
|
||||
#if 0 |
|
||||
#define STEPPER_MOTOR_ZERO_SENSOR SENSOR_INT0 |
|
||||
#define STEPPER_MOTOR_FORWARD_SENSOR SENSOR_INT8 |
|
||||
#define STEPPER_MOTOR_BACKWARD_SENSOR SENSOR_INT9 |
|
||||
#endif |
|
||||
|
|
||||
#define ID0_IO PD11 |
|
||||
#define ID1_IO PD12 |
|
||||
#define ID2_IO PD13 |
|
||||
#define ID3_IO PD14 |
|
||||
#define ID4_IO PD15 |
|
||||
|
|
||||
|
#define BOARD_ID 8 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue