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 30000 // �������Զ�����ʱ��
#define SAMPLE_MIN_TIME_S (30.0) // ������Сʱ��
#define LITTLE_DATA_BLOCK_FRAME_NUM 5 // ÿ�ζ���֡�ϱ�һ��
#define KEEP_STILL_OVERTIME_MS_1P5 1500 // ���־�ֹ��ʱʱ����1/6
#define LED_GREEN_PIN 9
#define LED_BLUE_PIN 10
#define HEART_WAVE_SAMPLE_TMR_INSTANCE 3
#define LIGHT_PWM_INSTANCE 1
// #define APP_BATTERY_PROTECT_LEVEL 2 // ���ڴ˵������ܿ�������������
// #define APP_AUTO_STANDY_BATTERY_LEVEL 5 // ���ڴ˵����Զ�����,����ʱ��
// #define APP_WORK_BATTERY_LEVEL 10 // Main��ʼ��ʱ���ʹ�standy�л���work��ʱ������������
#define APP_LOW_BATTERY_WARNING_LIMIT 20 //
#define LOW_BATTERY_REMINDER_DELAY_MS 3000
#define BLE_UNCONNECTED_OVERTIME_S 300
|