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:
N2614 2009-12-15 09:13:14 +00:00
parent e5cf26bf50
commit 92a200ea64

View File

@ -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を行う // RMWを行う
// Read // Read
@ -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;