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.
|
|
#pragma once
/*******************************************************************************
* BEEP * *******************************************************************************/ #define BEEP_PIN 1
#define BEEP_PWM_INSTANCE 0
/*******************************************************************************
* ADC * *******************************************************************************/
#define ECG_NLOD_PIN 3
#define ECG_PLOD_PIN 28
#define ECG_ADC_PIN NRF_SAADC_INPUT_AIN0
#define ECG_ADC_CHANNEL 0 // ���ظ�����
#define BATTERY_ADC_PIN NRF_SAADC_INPUT_AIN3
#define BATTERY_ADC_CHANNEL 1 // ���ظ�����
#define BATTERY_CHARGE_DETECT_PIN 18
/**
* @brief */
#define MAX_STORAGE_TIMEOUT_S (60 * 10) // ��洢ʱ��
#define MAX_STORAGE_SIZE (MAX_STORAGE_TIMEOUT_S * 400) // �洢��������Ϊ (256-8)kbyte
#define MAX_FILE_NUM 10 // �����洢��Ŀ��
#define SAMPLE_RATE 500 // ������
#define SAMPLE_PRECISION 12 // ��������
#define AUTOMATIC_SLEEP_TIME 5000 // �������Զ�����ʱ��
#define SAMPLE_MIN_TIME_S (30.0) // ������Сʱ��
#define LITTLE_DATA_BLOCK_FRAME_NUM 5 // ÿ�ζ���֡�ϱ�һ��
#define KEEP_STILL_OVERTIME_MS_1P5 2000 // ���־�ֹ��ʱʱ����1/6
#define LED_GREEN_PIN 9
#define LED_BLUE_PIN 10
#define HEART_WAVE_SAMPLE_TMR_INSTANCE 3
#define LIGHT_PWM_INSTANCE 1
|