77 lines
1.8 KiB
C
77 lines
1.8 KiB
C
#include "awtk.h"
|
|
#include "../common/navigator.h"
|
|
#include "../common/data_port.h"
|
|
#include "user_data.h"
|
|
#include "../common/universal.h"
|
|
|
|
#ifndef WITH_MVVM
|
|
extern daily_data_t custom_data;
|
|
extern Device_t device;
|
|
#ifndef AMT630HV100
|
|
// uint8_t save_tire_flag = 0;
|
|
uint8_t bt2_switch_time = 1;
|
|
uint8_t power_on_flag = 0;
|
|
uint8_t speed_flag = 0;
|
|
uint8_t tcs_twinkle = 0;
|
|
uint8_t tcs_switch = 0;
|
|
uint8_t can101_flag = 0;
|
|
uint8_t can_flag = 0;
|
|
uint8_t flash_flag = 0;
|
|
uint8_t dtc_flag = 0;
|
|
|
|
uint8_t refresh_500ms_flag = 1;
|
|
|
|
uint8_t bt_upgrade_flag = 0;
|
|
uint8_t time_flag = 0;
|
|
|
|
int test_light = 0;
|
|
SfudData_t sfud_data_saved = {0};
|
|
char bt121_name[50];
|
|
char bt121_name1[50];
|
|
|
|
void SaveDataToFlash(SfudData_t user_data){
|
|
}
|
|
void BT2_Switch(int type){
|
|
switch(type){
|
|
case 0://关闭蓝牙
|
|
Set_sys_bt_on_off(0);
|
|
break;
|
|
case 1://开启蓝牙
|
|
Set_sys_bt_on_off(1);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
}
|
|
void cat1_enable(void){}
|
|
void BT2_init_open(void){}
|
|
void BT2_init_close(void){}
|
|
void light_off(void){}
|
|
void cp_wlan_start(void){}
|
|
void oil_led_off(void){}
|
|
void oil_led_on(void){}
|
|
void vbat_led_on(void){}
|
|
void vbat_led_off(void){}
|
|
void SaveMileageData(uint32_t trip_data,uint32_t total_data){}
|
|
void read_mileage(uint32_t trip_data,uint32_t total_data){}
|
|
int console_send_atcmd(char* cAtCmd, unsigned short length){}
|
|
void Phone_book_analysis(void){}
|
|
void BW_121_Switch(uint8_t type){
|
|
Set_sys_bt_on_off(type);
|
|
}
|
|
void UART3_Type_regression(void){}
|
|
void UART3_Modification_Type(void){}
|
|
void carlink_cp_enable(uint8_t type){}
|
|
void carlink_aa_enable(uint8_t type){}
|
|
void carlink_ec_enable(uint8_t type){}
|
|
|
|
|
|
// 封装的函数,根据位位置获取对应的值
|
|
uint8_t getBitValue(uint8_t count, int bitPosition) {
|
|
return (count >> bitPosition) & 0x1;
|
|
}
|
|
#endif
|
|
|
|
#endif /*WITH_MVVM*/
|