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.

62 lines
2.7 KiB

2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
  1. #pragma once
  2. /***********************************************************************************************************************
  3. * Ϣ *
  4. ***********************************************************************************************************************/
  5. #define CATEGORY "M1003" // ������
  6. #define MANUFACTURER_NAME "iflytop"
  7. #define FIRMWARE_VERSION (508)
  8. #define BLESTACK_VERSION 1
  9. #define BOOTLOADER_VERSION 1
  10. #define HARDWARE_VERSION (2)
  11. #define APP_COMPANY_IDENTIFIER 0xFFFF
  12. /*******************************************************************************
  13. * BEEP *
  14. *******************************************************************************/
  15. #define BEEP_PIN 1
  16. #define BEEP_PWM_INSTANCE 0
  17. #define BATTERY_ADC_PIN NRF_SAADC_INPUT_AIN3
  18. #define BATTERY_ADC_CHANNEL 1 // ���ظ�����
  19. #define BATTERY_CHARGE_DETECT_PIN 6
  20. /**
  21. * @brief
  22. */
  23. #define MAX_STORAGE_TIMEOUT_S (60 * 10) // ��洢ʱ��
  24. #define MAX_STORAGE_SIZE (MAX_STORAGE_TIMEOUT_S * 400) // �洢��������Ϊ (256-8)kbyte
  25. #define MAX_FILE_NUM 10 // �����洢��Ŀ��
  26. #define SAMPLE_RATE 500 // ������
  27. #define SAMPLE_PRECISION 32 // ��������
  28. #define AUTOMATIC_SLEEP_TIME 30000 // �������Զ�����ʱ��
  29. #define SAMPLE_MIN_TIME_S (30.0) // ������Сʱ��
  30. #define LITTLE_DATA_BLOCK_FRAME_NUM 50 // ÿ�ζ���֡�ϱ�һ��
  31. #define KEEP_STILL_OVERTIME_MS_1P5 1500 // ���־�ֹ��ʱʱ����1/6
  32. #define LED_GREEN_PIN 9
  33. #define LED_BLUE_PIN 10
  34. #define LED_RED_PIN 39
  35. #define HEART_WAVE_SAMPLE_TMR_INSTANCE 3
  36. #define LIGHT_PWM_INSTANCE 1
  37. // #define APP_BATTERY_PROTECT_LEVEL 2 // ���ڴ˵������ܿ�������������
  38. // #define APP_AUTO_STANDY_BATTERY_LEVEL 5 // ���ڴ˵����Զ�����,����ʱ��
  39. // #define APP_WORK_BATTERY_LEVEL 10 // Main��ʼ��ʱ���ʹ�standy�л���work��ʱ�򣬼�����������
  40. #define APP_LOW_BATTERY_WARNING_LIMIT 20 //
  41. #define LOW_BATTERY_REMINDER_DELAY_MS 3000
  42. #define BLE_UNCONNECTED_OVERTIME_S 300
  43. /***********************************************************************************************************************
  44. * ADS1291_IF *
  45. ***********************************************************************************************************************/
  46. #define ADS1291_SPI_INSTANCE 2