mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
STATUSレジスタのbacklight_topとbacklight_bottomが逆になっていた
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@60 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
e5cf26bf50
commit
92a200ea64
@ -327,6 +327,7 @@ err PM_BL_set( u8 dat )
|
|||||||
u8 blset;
|
u8 blset;
|
||||||
#endif
|
#endif
|
||||||
u8 intset = 0;
|
u8 intset = 0;
|
||||||
|
u8 status_blset = 0;
|
||||||
// RMW‚ð<E2809A>s‚¤
|
// RMW‚ð<E2809A>s‚¤
|
||||||
|
|
||||||
// Read
|
// Read
|
||||||
@ -358,7 +359,7 @@ err PM_BL_set( u8 dat )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _PMIC_TWL_
|
#ifdef _PMIC_TWL_
|
||||||
if(( blset != 0x00 )
|
if(( blset != 0x00 )
|
||||||
&& ( ( dat & ( REG_BIT_CMD_BL_U_OFF | REG_BIT_CMD_BL_L_OFF )) == ( REG_BIT_CMD_BL_U_OFF | REG_BIT_CMD_BL_L_OFF )) )
|
&& ( ( dat & ( REG_BIT_CMD_BL_U_OFF | REG_BIT_CMD_BL_L_OFF )) == ( REG_BIT_CMD_BL_U_OFF | REG_BIT_CMD_BL_L_OFF )) )
|
||||||
{
|
{
|
||||||
PM_TEG_LCD_dis( 1 );
|
PM_TEG_LCD_dis( 1 );
|
||||||
@ -371,7 +372,8 @@ err PM_BL_set( u8 dat )
|
|||||||
wait_ms( 10 );
|
wait_ms( 10 );
|
||||||
}
|
}
|
||||||
|
|
||||||
vreg_ctr[VREG_C_STATUS] = (( vreg_ctr[VREG_C_STATUS] & 0b10011111 ) | ( blset << 5 ));
|
status_blset = ((blset & 0x01) << 1) | ((blset & 0x02) >> 1);
|
||||||
|
vreg_ctr[VREG_C_STATUS] = (( vreg_ctr[VREG_C_STATUS] & 0b10011111 ) | ( status_blset << 5 ));
|
||||||
{
|
{
|
||||||
u8 tot;
|
u8 tot;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user