fix:部分机板开机画面亮度低;关机充电花屏
1. 解决部分模组开机界面暗 2. 解决关机状态下,充电前面两个充电标志正常,后面电池报警图标花屏
This commit is contained in:
parent
9ba37d3b60
commit
eef222ab64
|
@ -10,14 +10,14 @@
|
|||
<TargetName>ISP568</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pArmCC>5060750::V5.06 update 6 (build 750)::ARMCC</pArmCC>
|
||||
<pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed>
|
||||
<pArmCC>5060750::V5.06 update 6 (build 750)::.\Arm Compiler 5.06 update 6 (build 750)</pArmCC>
|
||||
<pCCUsed>5060750::V5.06 update 6 (build 750)::.\Arm Compiler 5.06 update 6 (build 750)</pCCUsed>
|
||||
<uAC6>0</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>ARMCM0</Device>
|
||||
<Vendor>ARM</Vendor>
|
||||
<PackID>ARM.CMSIS.5.5.1</PackID>
|
||||
<PackID>ARM.CMSIS.5.8.0</PackID>
|
||||
<PackURL>http://www.keil.com/pack/</PackURL>
|
||||
<Cpu>IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("Cortex-M0") CLOCK(12000000) ESEL ELITTLE</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<InvalidFlash>1</InvalidFlash>
|
||||
</TargetStatus>
|
||||
<OutputDirectory>.\Objects\</OutputDirectory>
|
||||
<OutputName>WL568_S21_NT37701_20230403</OutputName>
|
||||
<OutputName>WL568_S21_NT37701_20230522</OutputName>
|
||||
<CreateExecutable>1</CreateExecutable>
|
||||
<CreateLib>0</CreateLib>
|
||||
<CreateHexFile>1</CreateHexFile>
|
||||
|
@ -186,6 +186,7 @@
|
|||
<uocXRam>0</uocXRam>
|
||||
<RvdsVP>0</RvdsVP>
|
||||
<RvdsMve>0</RvdsMve>
|
||||
<RvdsCdeCp>0</RvdsCdeCp>
|
||||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>16</StupSel>
|
||||
|
@ -352,7 +353,7 @@
|
|||
<NoWarn>0</NoWarn>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<useXO>0</useXO>
|
||||
<uClangAs>0</uClangAs>
|
||||
<ClangAsOpt>4</ClangAsOpt>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
|
@ -393,62 +394,6 @@
|
|||
<FileType>1</FileType>
|
||||
<FilePath>..\src\app\demo\ap_demo.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>app_tp_for_custom_s8.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\src\app\demo\app_tp_for_custom_s8.c</FilePath>
|
||||
<FileOption>
|
||||
<CommonProperty>
|
||||
<UseCPPCompiler>2</UseCPPCompiler>
|
||||
<RVCTCodeConst>0</RVCTCodeConst>
|
||||
<RVCTZI>0</RVCTZI>
|
||||
<RVCTOtherData>0</RVCTOtherData>
|
||||
<ModuleSelection>0</ModuleSelection>
|
||||
<IncludeInBuild>0</IncludeInBuild>
|
||||
<AlwaysBuild>2</AlwaysBuild>
|
||||
<GenerateAssemblyFile>2</GenerateAssemblyFile>
|
||||
<AssembleAssemblyFile>2</AssembleAssemblyFile>
|
||||
<PublicsOnly>2</PublicsOnly>
|
||||
<StopOnExitCode>11</StopOnExitCode>
|
||||
<CustomArgument></CustomArgument>
|
||||
<IncludeLibraryModules></IncludeLibraryModules>
|
||||
<ComprImg>1</ComprImg>
|
||||
</CommonProperty>
|
||||
<FileArmAds>
|
||||
<Cads>
|
||||
<interw>2</interw>
|
||||
<Optim>0</Optim>
|
||||
<oTime>2</oTime>
|
||||
<SplitLS>2</SplitLS>
|
||||
<OneElfS>2</OneElfS>
|
||||
<Strict>2</Strict>
|
||||
<EnumInt>2</EnumInt>
|
||||
<PlainCh>2</PlainCh>
|
||||
<Ropi>2</Ropi>
|
||||
<Rwpi>2</Rwpi>
|
||||
<wLevel>0</wLevel>
|
||||
<uThumb>2</uThumb>
|
||||
<uSurpInc>2</uSurpInc>
|
||||
<uC99>2</uC99>
|
||||
<uGnu>2</uGnu>
|
||||
<useXO>2</useXO>
|
||||
<v6Lang>0</v6Lang>
|
||||
<v6LangP>0</v6LangP>
|
||||
<vShortEn>2</vShortEn>
|
||||
<vShortWch>2</vShortWch>
|
||||
<v6Lto>2</v6Lto>
|
||||
<v6WtE>2</v6WtE>
|
||||
<v6Rtti>2</v6Rtti>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Cads>
|
||||
</FileArmAds>
|
||||
</FileOption>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>app_tp_transfer.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
|
@ -521,7 +466,7 @@
|
|||
<NoWarn>2</NoWarn>
|
||||
<uSurpInc>2</uSurpInc>
|
||||
<useXO>2</useXO>
|
||||
<uClangAs>2</uClangAs>
|
||||
<ClangAsOpt>0</ClangAsOpt>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
|
@ -567,4 +512,13 @@
|
|||
</files>
|
||||
</RTE>
|
||||
|
||||
<LayerInfo>
|
||||
<Layers>
|
||||
<Layer>
|
||||
<LayName>ISP568</LayName>
|
||||
<LayPrjMark>1</LayPrjMark>
|
||||
</Layer>
|
||||
</Layers>
|
||||
</LayerInfo>
|
||||
|
||||
</Project>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
|
||||
/*
|
||||
* Auto generated Run-Time-Environment Configuration File
|
||||
* *** Do not modify ! ***
|
||||
*
|
||||
* Project: 'ISP568'
|
||||
* Target: 'ISP568'
|
||||
*/
|
||||
|
||||
#ifndef RTE_COMPONENTS_H
|
||||
#define RTE_COMPONENTS_H
|
||||
|
||||
|
||||
/*
|
||||
* Define the Device Header File:
|
||||
*/
|
||||
#define CMSIS_device_header "ARMCM0.h"
|
||||
|
||||
|
||||
|
||||
#endif /* RTE_COMPONENTS_H */
|
|
@ -153,7 +153,7 @@ uint8_t phone_DisplayOFF_flag=0;
|
|||
#endif
|
||||
|
||||
|
||||
|
||||
static uint32_t curFrame = 0;
|
||||
/// 清晰度较好
|
||||
uint32_t rx_filter_1080_h_4_96[32][2] =
|
||||
{
|
||||
|
@ -324,6 +324,7 @@ static void ap_reset_cb(void *data)
|
|||
#endif
|
||||
|
||||
|
||||
static bool isStart = false;
|
||||
static bool ap_dcs_read(uint8_t data_type, uint8_t dcs_cmd, uint8_t param)
|
||||
{
|
||||
#ifdef USE_FOR_SUMSUNG_S21
|
||||
|
@ -549,6 +550,7 @@ static bool ap_dcs_read(uint8_t data_type, uint8_t dcs_cmd, uint8_t param)
|
|||
{
|
||||
TAU_LOGD("r[%x] [%d] err\r\n", dcs_cmd, return_size);
|
||||
}
|
||||
isStart = true;
|
||||
}
|
||||
else if (dcs_cmd == 0x0A)
|
||||
{
|
||||
|
@ -4759,7 +4761,17 @@ static void init_panel(void)
|
|||
}
|
||||
|
||||
|
||||
|
||||
static void frame_start_cb(hal_rx_dbg_event_e event)
|
||||
{
|
||||
curFrame++;
|
||||
if((isStart)&&(curFrame==4))
|
||||
{
|
||||
hal_dsi_rx_ctrl_stop(g_rx_ctrl_handle);
|
||||
hal_dsi_rx_ctrl_init(g_rx_ctrl_handle);
|
||||
hal_dsi_rx_ctrl_start(g_rx_ctrl_handle);
|
||||
TAU_LOGD("RX RST\n");
|
||||
}
|
||||
}
|
||||
static void open_mipi_rx(void)
|
||||
{
|
||||
/* 配置TE引脚 */
|
||||
|
@ -4791,6 +4803,7 @@ static void open_mipi_rx(void)
|
|||
g_rx_ctrl_handle->base_info.extra_info.rot_angle = VIDOE_ROT_ANGLE_0;
|
||||
g_rx_ctrl_handle->base_info.extra_info.mirror_en = false;
|
||||
g_rx_ctrl_handle->base_info.extra_info.ltpo = true;
|
||||
g_rx_ctrl_handle->rx_debug_cb = frame_start_cb;
|
||||
#endif
|
||||
|
||||
/* 提前预置PPS, AP 有PPS cmd也会更新 */
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "tau_log.h"
|
||||
#include "tau_delay.h"
|
||||
#include "app_tp_st_touch.h"
|
||||
#include "hal_dsi_tx_ctrl.h"
|
||||
|
||||
#if 1//def AP_TP_TRANSFER
|
||||
uint8_t read_point; //当前要读的报点数。一个报点8BYTE数据
|
||||
|
@ -420,6 +421,8 @@ void S20_Start_init(void)
|
|||
uint8_t len=0;
|
||||
uint8_t temp=0;
|
||||
uint8_t temp_start_flag=0;
|
||||
|
||||
hal_dsi_tx_ctrl_write_cmd(0x29, 0, 3, 0x51, 0x07, 0xff);
|
||||
// if(phone_start_flag==1)
|
||||
{
|
||||
app_tp_m_read(screen_reg_int_data[0].buffer, 1, s_screen_read_buffer, 8);
|
||||
|
|
|
@ -0,0 +1,109 @@
|
|||
/*******************************************************************************
|
||||
*
|
||||
*
|
||||
* File: hal_system.h
|
||||
* Description hal 通用系统接口头文件
|
||||
* Version V0.1
|
||||
* Date 2023-03-03
|
||||
* Author kevin
|
||||
*******************************************************************************/
|
||||
#ifndef __HAL_FLASH_H__
|
||||
#define __HAL_FLASH_H__
|
||||
/*******************************************************************************
|
||||
* 1.Included files
|
||||
*******************************************************************************/
|
||||
#include "tau_common.h"
|
||||
|
||||
/*******************************************************************************
|
||||
* 2.Global constant and macro definitions using #define
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* 3.Global structures, unions and enumerations using typedef
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* 4.Global variable extern declarations
|
||||
*******************************************************************************/
|
||||
|
||||
/*******************************************************************************
|
||||
* 5.Global function prototypes
|
||||
*******************************************************************************/
|
||||
|
||||
/**
|
||||
* @brief 初始化flash 模块,使用完flash模块后需要deinit用于节省功耗
|
||||
* @param
|
||||
* @retval bool 无
|
||||
*/
|
||||
void hal_flash_init(void);
|
||||
|
||||
/**
|
||||
* @brief 关闭flash 模块
|
||||
* @param
|
||||
* @retval bool 无
|
||||
*/
|
||||
void hal_flash_deinit(void);
|
||||
|
||||
|
||||
/**
|
||||
* @brief flash ctl读取flash-uid操作
|
||||
* @param UID[16] 存放UID的数组,UID最大长度为16
|
||||
* @param UID 数组长度(最大16)
|
||||
* @retval
|
||||
*/
|
||||
void hal_flash_read_uid(uint8_t *UID, uint8_t size);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
* @param flash_block:0-13,选择对应的block进行擦除,启动对某个block写之前需要先擦除对应64K数据
|
||||
* @retval
|
||||
*/
|
||||
bool hal_flash_erase(uint8_t flash_block);
|
||||
|
||||
|
||||
/**
|
||||
* @brief 用户字节数组形式从flash读取数据,按页读取,每页1024字节
|
||||
* @param *usr_cfg_t_addr(数组首地址),
|
||||
usr_cfg_t_size(数组大小可以超过1024,超过1024时为跨页连续读)
|
||||
flash_block:选择操作的block(0-13,其中0-3为TDDI Flash区域)
|
||||
flash_page :(一个block 页0~63)
|
||||
page_offset_addr:block = 64K
|
||||
* @retval bool 无
|
||||
*/
|
||||
bool hal_flash_normal_read(uint8_t *usr_cfg_t_addr,
|
||||
uint16_t usr_cfg_t_size,
|
||||
uint8_t flash_block,
|
||||
uint16_t flash_page,
|
||||
uint16_t page_offset_addr);
|
||||
|
||||
/**
|
||||
* @brief 用户字节数组形式存入flash(次数有限,不可频繁写入),按页写入,每页1024字节
|
||||
注意:写入某个block前确认使用hal_flash_erase进行擦除整个blocK,才能对该block的0-63page进行写入
|
||||
* @param *usr_cfg_t_addr(数组首地址),
|
||||
usr_cfg_t_size(数组大小可以超过1024,超过1024时为跨页连续写)
|
||||
flash_block:选择操作的block(0-13,其中0-3为TDDI Flash区域)
|
||||
flash_page (一个block 0~63页)
|
||||
page_offset_addr:0-1023 byte
|
||||
* @retval bool 校验size是否超出
|
||||
*/
|
||||
bool hal_flash_normal_write(uint8_t *usr_cfg_t_addr,
|
||||
uint16_t usr_cfg_t_size,
|
||||
uint8_t flash_block,
|
||||
uint16_t flash_page,
|
||||
uint16_t page_offset_addr);
|
||||
|
||||
/**
|
||||
* @brief 发送0xAB指令控制flash退出deep sleep power mode
|
||||
* @param none
|
||||
* @retval null
|
||||
*/
|
||||
void hal_flash_release_power_down(void);
|
||||
|
||||
/**
|
||||
* @brief 发送0xB9指令控制flash进入deep sleep power mode
|
||||
* @param none
|
||||
* @retval null
|
||||
*/
|
||||
void hal_flash_power_down(void);
|
||||
|
||||
#endif //__HAL_FLASH_H__
|
Binary file not shown.
Loading…
Reference in New Issue