cun
This commit is contained in:
@ -118,11 +118,17 @@ uint8_t WF_Init() {
|
|||||||
|
|
||||||
// 1. 配置传感器工作模式
|
// 1. 配置传感器工作模式
|
||||||
// 推荐配置:压力8次过采样,温度1次过采样,测量速率16Hz
|
// 推荐配置:压力8次过采样,温度1次过采样,测量速率16Hz
|
||||||
wf282a_write_reg(WF_PRS_CFG, (PM_RATE_32 << 4) | PM_PRC_32);
|
// wf282a_write_reg(WF_PRS_CFG, (PM_RATE_32 << 4) | PM_PRC_32);
|
||||||
wf282a_write_reg(WF_TMP_CFG, TMP_INT_SENSOR | (TMP_RATE_32 << 4) | TMP_PRC_32);
|
// wf282a_write_reg(WF_TMP_CFG, TMP_INT_SENSOR | (TMP_RATE_32 << 4) | TMP_PRC_32);
|
||||||
wf282a_write_reg(WF_MEAS_CFG, 0x07); // 启动连续压力和温度测量
|
// wf282a_write_reg(WF_MEAS_CFG, 0x07); // 启动连续压力和温度测量
|
||||||
|
// wf282a_write_reg(WF_CFG_REG, 0x00); // 无中断或FIFO移位配置
|
||||||
|
|
||||||
|
wf282a_write_reg(WF_RESET_REG, 0x09); //上电复位
|
||||||
|
wf282a_write_reg(WF_TMP_CFG, 0X87);
|
||||||
|
// wf282a_write_reg(WF_MEAS_CFG, 0x07); // 启动连续压力和温度测量
|
||||||
wf282a_write_reg(WF_CFG_REG, 0x00); // 无中断或FIFO移位配置
|
wf282a_write_reg(WF_CFG_REG, 0x00); // 无中断或FIFO移位配置
|
||||||
|
|
||||||
|
|
||||||
// 2. 一次性读取所有校准系数 (从0x10到0x21,共18字节)
|
// 2. 一次性读取所有校准系数 (从0x10到0x21,共18字节)
|
||||||
if (wf282a_read_regs(COEF_C0, calib_buf, 18) == 0) {
|
if (wf282a_read_regs(COEF_C0, calib_buf, 18) == 0) {
|
||||||
xlog("Failed to read the calibration coefficient\n");
|
xlog("Failed to read the calibration coefficient\n");
|
||||||
|
|||||||
@ -84,7 +84,7 @@ extern u8 init_ok;
|
|||||||
extern u8 sniff_out;
|
extern u8 sniff_out;
|
||||||
unsigned char xtell_bl_state=0; //存放经典蓝牙的连接状态,0断开,1是连接
|
unsigned char xtell_bl_state=0; //存放经典蓝牙的连接状态,0断开,1是连接
|
||||||
u8 bt_newname =0;
|
u8 bt_newname =0;
|
||||||
unsigned char xt_ble_new_name[9] = "skiing_D7";
|
unsigned char xt_ble_new_name[9] = "skiing_2";
|
||||||
static u16 play_poweron_ok_timer_id = 0;
|
static u16 play_poweron_ok_timer_id = 0;
|
||||||
|
|
||||||
// -- 初始化标志位 --
|
// -- 初始化标志位 --
|
||||||
|
|||||||
Binary file not shown.
@ -10,7 +10,7 @@ copy ..\..\ota.bin .
|
|||||||
copy ..\..\anc_coeff.bin .
|
copy ..\..\anc_coeff.bin .
|
||||||
copy ..\..\anc_gains.bin .
|
copy ..\..\anc_gains.bin .
|
||||||
|
|
||||||
..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br28 -boot 0x120000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin -res ..\..\cfg_tool.bin tone.cfg p11_code.bin ..\..\eq_cfg_hw.bin -uboot_compress -format all -key 646-AC690X-7603.key
|
..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br28 -boot 0x120000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin -res ..\..\cfg_tool.bin tone.cfg p11_code.bin ..\..\eq_cfg_hw.bin -uboot_compress -format all
|
||||||
|
|
||||||
@REM..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br34 -boot 0x20000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin ..\..\cfg_tool.bin -res tone.cfg kws_command.bin p11_code.bin -uboot_compress
|
@REM..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br34 -boot 0x20000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin ..\..\cfg_tool.bin -res tone.cfg kws_command.bin p11_code.bin -uboot_compress
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ copy ..\..\ota.bin .
|
|||||||
copy ..\..\anc_coeff.bin .
|
copy ..\..\anc_coeff.bin .
|
||||||
copy ..\..\anc_gains.bin .
|
copy ..\..\anc_gains.bin .
|
||||||
|
|
||||||
..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br28 -boot 0x120000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin -res ..\..\cfg_tool.bin tone.cfg p11_code.bin ..\..\eq_cfg_hw.bin -uboot_compress -key 646-AC690X-7603.key
|
..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br28 -boot 0x120000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin -res ..\..\cfg_tool.bin tone.cfg p11_code.bin ..\..\eq_cfg_hw.bin -uboot_compress
|
||||||
|
|
||||||
@REM..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br34 -boot 0x20000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin ..\..\cfg_tool.bin -res tone.cfg kws_command.bin p11_code.bin -uboot_compress
|
@REM..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br34 -boot 0x20000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin ..\..\cfg_tool.bin -res tone.cfg kws_command.bin p11_code.bin -uboot_compress
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user