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.

42 lines
1.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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. /*******************************************************************************
  3. * BEEP *
  4. *******************************************************************************/
  5. #define BEEP_PIN 1
  6. #define BEEP_PWM_INSTANCE 0
  7. /*******************************************************************************
  8. * ADC *
  9. *******************************************************************************/
  10. #define ECG_NLOD_PIN 3
  11. #define ECG_PLOD_PIN 28
  12. #define ECG_ADC_PIN NRF_SAADC_INPUT_AIN0
  13. #define ECG_ADC_CHANNEL 0 // ���ظ�����
  14. #define BATTERY_ADC_PIN NRF_SAADC_INPUT_AIN3
  15. #define BATTERY_ADC_CHANNEL 1 // ���ظ�����
  16. #define BATTERY_CHARGE_DETECT_PIN 18
  17. /**
  18. * @brief
  19. */
  20. #define MAX_STORAGE_TIMEOUT_S (60 * 10) // ��洢ʱ��
  21. #define MAX_STORAGE_SIZE (MAX_STORAGE_TIMEOUT_S * 400) // �洢��������Ϊ (256-8)kbyte
  22. #define MAX_FILE_NUM 10 // �����洢��Ŀ��
  23. #define SAMPLE_RATE 500 // ������
  24. #define SAMPLE_PRECISION 12 // ��������
  25. #define AUTOMATIC_SLEEP_TIME 5000 // �������Զ�����ʱ��
  26. #define SAMPLE_MIN_TIME_S (30.0) // ������Сʱ��
  27. #define LITTLE_DATA_BLOCK_FRAME_NUM 5 // ÿ�ζ���֡�ϱ�һ��
  28. #define KEEP_STILL_OVERTIME_MS_1P5 2000 // ���־�ֹ��ʱʱ����1/6
  29. #define LED_GREEN_PIN 9
  30. #define LED_BLUE_PIN 10
  31. #define HEART_WAVE_SAMPLE_TMR_INSTANCE 3
  32. #define LIGHT_PWM_INSTANCE 1