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
42 lines
1.7 KiB
#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
|