You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
1.9 KiB

#pragma once
#define VERSION(mainv, sub, fix) (mainv << 16 | sub << 8 | fix)
/***********************************************************************************************************************
* SDK_CONFIG *
***********************************************************************************************************************/
#define SDK_DELAY_US_TIMER htim6 // 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置 http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
#define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO中断默认中断等级
#define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 // flash配置地址
#define SDK_CFG__SN_FLASH_ADDR 0x080E0004 //
#define SDK_MAX_TASK 20 // 最大任务数量
/***********************************************************************************************************************
* FLASH分区 *
***********************************************************************************************************************/
// #define BOARD_TYPE_ID_FLASH_ADD 0x080E0000 // 板子类型
// #define SN_FLASH_ADD 0x080E0004 // 使用扇区11存储SN编码
#define HARDWARE_VERSION 1 // 硬件版本
#define PROJECT "hand_acid_main_board" // 工程名称
#define APP_VERSION VERSION(3, 0, 2)
#define APP_VERSION_MAIN ((APP_VERSION >> 16) & 0xff)
#define APP_VERSION_SUB ((APP_VERSION >> 8) & 0xff)
#define APP_VERSION_FIX (APP_VERSION & 0xff)
#define MOTOR_NUM 4
#define MAX_USR_NUM 8 // 数量更改时候需要修改UsrMgr页面
#define DEFAULT_PASSWD "888888"
#define ENABLE_MOTOR_CHECK_THREAD 0 // 是否启用电机检测线程