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.

29 lines
1.1 KiB

2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #define VERSION(main, sub, fix) (main << 16 | sub << 8 | fix << 0)
  3. #define PC_VERSION VERSION(3, 3, 3)
  4. #define PC_MANUFACTURER0 ('i' | 'f' << 8 | 'l' << 16 | 'y' << 24)
  5. #define PC_MANUFACTURER1 ('t' | 'o' << 8 | 'p' << 16 | '\0' << 24)
  6. #define PC_PROJECT_NAME "xsync"
  7. #define PC_DEVICE_NAME "xsync"
  8. #define PC_IFLYTOP_ENABLE_OS 1
  9. #define PC_DEBUG_UART huart1
  10. #define PC_DEBUG_UART_DMA_HANDLER hdma_usart1_rx
  11. #define PC_DEBUG_UART_RX_BUF_SIZE 1024
  12. #define PC_DEBUG_LIGHT_GPIO PB0
  13. #define PC_SYS_DELAY_US_TIMER htim6 // US��ʱ��ʱ��
  14. #define PC_SYS_ZTICKET_TIMER TIM11 // ϵͳticket��ʱ��
  15. #define PC_SYS_TIM_IRQ_SCHEDULER_TIMER htim7 // �ж϶�ʱ���жϵ�����
  16. #define PC_IRQ_PREEMPTPRIORITY_DEFAULT 5
  17. #define PC_NVS_ENABLE 1
  18. // =====================================================================
  19. // =====================================================================
  20. // =====================================================================
  21. #define FACTORY_RESET_KEY PB1
  22. #define POWER_LED_PIN PB2