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.

39 lines
1.8 KiB

2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #define VERSION(main, sub, fix) (main << 16 | sub << 8 | fix << 0)
  3. #define VERSION_MAIN(version) ((version >> 16) & 0xFF)
  4. #define VERSION_SUB(version) ((version >> 8) & 0xFF)
  5. #define VERSION_FIX(version) ((version >> 0) & 0xFF)
  6. /***********************************************************************************************************************
  7. * PROJECT_CONFIG *
  8. ***********************************************************************************************************************/
  9. /**
  10. * @brief
  11. *
  12. */
  13. #define PC_VERSION VERSION(1, 0, 0)
  14. #define PROJECT "dbdb_liquid_path_control"
  15. #define SN_HEADER "SN"
  16. #define DEVICE_ID (2)
  17. #define DEBUG_UART huart1 // ���Դ���
  18. #define DEBUG_LIGHT_GPIO PE8 // ����ָʾ��
  19. /**
  20. * @brief
  21. */
  22. #define MOTOR_SPI hspi1
  23. #define MOTOR_CH(n) (n)
  24. #define MOTOR2_CSN PA4 //
  25. #define MOTOR2_ENN PE11
  26. #define MOTOR1_CSN PC4 //
  27. #define MOTOR1_ENN PE12
  28. /***********************************************************************************************************************
  29. * SDK_CONFIG *
  30. ***********************************************************************************************************************/
  31. #define SDK_DELAY_US_TIMER htim6 // ΢���ӳٶ�ʱ����ע������ʱ��ʱ����Ҫ���������ĵ��������� http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  32. #define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO�ж�Ĭ���жϵȼ�
  33. #define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 //
  34. #define SDK_CFG__SN_FLASH_ADDR 0x080E0000 //