TorryLong

博客园 首页 新随笔 联系 订阅 管理

05 2020 档案

摘要://****读取中间值****// short GetMedianNum(short * bArray, short iFilterLen) { short i,j,bTemp;// 排序循环 for (j = 0; j < iFilterLen - 1; j ++) { for (i = 0; i 阅读全文
posted @ 2020-05-28 14:14 TorryLong 阅读(423) 评论(0) 推荐(0)

摘要:uint16_t uGetPCB_Temperature(void) { uint16_t x; float Adcn; float k; Adcn = userADC_var.ADCMeasureVals[num_PCB_ADC]; for(x=0;x<sizeof(NTC_PCB_D);x++) 阅读全文
posted @ 2020-05-28 11:59 TorryLong 阅读(739) 评论(0) 推荐(0)

摘要:#define FU_SAADC_RESOLUTION 1024 // 10bit#define FU_SAADC_REFERENCE 3600 // (in the unit of mV) uint16_t service_bas_voltage_get(void){ ret_code_t err 阅读全文
posted @ 2020-05-20 19:39 TorryLong 阅读(678) 评论(0) 推荐(0)

摘要:if(nrf_power_resetreas_get() & NRF_POWER_RESETREAS_OFF_MASK)//读取是掉电重启还是按键唤醒 {//按键唤醒 if(KEY_POWER_PRESSED) { key_smokekey_enable(); } eStateMachine = E 阅读全文
posted @ 2020-05-16 15:44 TorryLong 阅读(1407) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2020-05-13 16:52 TorryLong 阅读(470) 评论(0) 推荐(0)

摘要:nrf52832(nrf52810) 阅读全文
posted @ 2020-05-05 12:27 TorryLong 阅读(609) 评论(0) 推荐(0)