添加 HARD_VERSION 宏,根据硬件版本不同来确定power参数

This commit is contained in:
ranchuan
2023-10-27 18:47:02 +08:00
parent 831a002bca
commit 6e00039d60
7 changed files with 49 additions and 17 deletions

View File

@@ -8,6 +8,8 @@ volatile uint16_t ad0_adc_sample[AD_SCAN_SAMPLE*AD_SCAN_COUNT];
#define ADC1_SAMPLE_BUF_LEN 200
#define ADC1_SAMPLE_BUF_LEN2 20
volatile uint16_t FireBus_ADC_Buf[FIREBUS_ADC_BUF_LEN];
@@ -499,7 +501,7 @@ void AD_SampleResistor(uint16_t* channels_re)
uint16_t aus_sample[32];
uint8_t uc_index = 0;
const static float resistor_cur = 2.49f;
const static float res_mutli = 79.7;
const static float res_mutli = RES_MULTIPLE;
/*
Gpio_ResistorSwitch
@param 0 全关