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

3 months ago
  1. #pragma once
  2. #define VERSION(mainv, sub, fix) (mainv << 16 | sub << 8 | fix)
  3. /***********************************************************************************************************************
  4. * SDK_CONFIG *
  5. ***********************************************************************************************************************/
  6. #define SDK_DELAY_US_TIMER htim6 // ΢���ӳٶ�ʱ����ע������ʱ��ʱ����Ҫ���������ĵ��������� http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  7. #define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO�ж�Ĭ���жϵȼ�
  8. #define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 // flash���õ�ַ
  9. #define SDK_CFG__SN_FLASH_ADDR 0x080E0004 //
  10. #define SDK_MAX_TASK 20 // ������������
  11. /***********************************************************************************************************************
  12. * FLASH *
  13. ***********************************************************************************************************************/
  14. // #define BOARD_TYPE_ID_FLASH_ADD 0x080E0000 // ��������
  15. // #define SN_FLASH_ADD 0x080E0004 // ʹ������11�洢SN����
  16. #define HARDWARE_VERSION 1 // Ӳ���汾
  17. #define PROJECT "hand_acid_main_board" // ��������
  18. #define APP_VERSION VERSION(3, 1, 2)
  19. #define APP_VERSION_MAIN ((APP_VERSION >> 16) & 0xff)
  20. #define APP_VERSION_SUB ((APP_VERSION >> 8) & 0xff)
  21. #define APP_VERSION_FIX (APP_VERSION & 0xff)
  22. #define MOTOR_NUM 4
  23. #define MAX_USR_NUM 8 // ��������ʱ����Ҫ�޸�UsrMgrҳ��
  24. #define DEFAULT_PASSWD "888888"
  25. #define ENABLE_MOTOR_CHECK_THREAD 0 // �Ƿ����õ��������߳�
  26. #define MAX_USR_NAME_LEN 31