Compare commits
1 Commits
lmx_skiing
...
skiing_tmp
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c9ec6cec8 |
@ -167,7 +167,7 @@ void sensor_collect_task(void){
|
|||||||
if(interval >= 4){
|
if(interval >= 4){
|
||||||
interval = 0;
|
interval = 0;
|
||||||
SL_data_index = 0;
|
SL_data_index = 0;
|
||||||
bmp280_read_data(&temperature, &pressure);//每40ms读取一次
|
// bmp280_read_data(&temperature, &pressure);//每40ms读取一次
|
||||||
for(int i = 0;i<MPU_FIFO_LEN;i++){
|
for(int i = 0;i<MPU_FIFO_LEN;i++){
|
||||||
send_data.sensor_package[i].temperature = (int16_t)(temperature * 1000.0f);
|
send_data.sensor_package[i].temperature = (int16_t)(temperature * 1000.0f);
|
||||||
send_data.sensor_package[i].pressure = (int32_t)(pressure * 1000.0f);
|
send_data.sensor_package[i].pressure = (int32_t)(pressure * 1000.0f);
|
||||||
@ -337,8 +337,8 @@ void BLE_send_fuc(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern void uartSendData(void *buf, u16 len) ; // 确保u16是uint16_t或unsigned short
|
// extern void uartSendData(void *buf, u16 len) ; // 确保u16是uint16_t或unsigned short
|
||||||
uartSendData(send_buffer, 484); // 发送总共17字节
|
// uartSendData(send_buffer, 484); // 发送总共17字节
|
||||||
send_data_to_ble_client(send_buffer, 484); // 发送数据
|
send_data_to_ble_client(send_buffer, 484); // 发送数据
|
||||||
|
|
||||||
// data_log(send_buffer);
|
// data_log(send_buffer);
|
||||||
|
|||||||
@ -83,7 +83,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] = "xtell";
|
unsigned char xt_ble_new_name[9] = "xtell_1";
|
||||||
static u16 play_poweron_ok_timer_id = 0;
|
static u16 play_poweron_ok_timer_id = 0;
|
||||||
|
|
||||||
// -- 初始化标志位 --
|
// -- 初始化标志位 --
|
||||||
|
|||||||
Binary file not shown.
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
|
..\..\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
|
||||||
|
|
||||||
@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.
@ -5369,7 +5369,6 @@ objs/apps/earphone/xtell_Sensor/send_data.c.o
|
|||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,sensor_collect_task,pl
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,sensor_collect_task,pl
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,mmc5603nj_read_mag_data,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,mmc5603nj_read_mag_data,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SL_SC7U22_FIFO_Read,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,SL_SC7U22_FIFO_Read,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,bmp280_read_data,l
|
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_write,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,circle_buffer_write,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,os_sem_post,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,os_sem_post,l
|
||||||
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,os_time_dly,l
|
-r=objs/apps/earphone/xtell_Sensor/send_data.c.o,os_time_dly,l
|
||||||
|
|||||||
Reference in New Issue
Block a user