Index: output/eeprom.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/eeprom.dat	(revision 4690)
+++ /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/eeprom.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-3a
+92
 08
 c2
 84
@@ -23,7 +23,7 @@
 c0
 0a
 01
-91
+a7
 c0
 0a
 80
@@ -43,11 +43,11 @@
 c0
 12
 81
-e5
+fb
 c0
 13
 81
-da
+f0
 c0
 58
 80
@@ -59,11 +59,11 @@
 c0
 6d
 01
-62
+78
 c0
 6e
 01
-72
+88
 20
 20
 23
@@ -71,7 +71,7 @@
 c0
 12
 01
-b3
+c9
 c0
 12
 80
@@ -83,7 +83,7 @@
 c0
 1c
 81
-ad
+c3
 c0
 1f
 80
@@ -91,7 +91,7 @@
 c0
 26
 81
-b1
+c7
 c1
 7f
 80
@@ -543,11 +543,11 @@
 20
 40
 01
-34
+4a
 20
 40
 01
-5f
+75
 20
 40
 00
@@ -563,7 +563,7 @@
 20
 20
 01
-61
+77
 20
 75
 80
@@ -1075,7 +1075,15 @@
 58
 00
 01
-1f
+21
+67
+e1
+43
+d5
+58
+00
+01
+35
 67
 e1
 43
@@ -1083,7 +1091,7 @@
 58
 00
 01
-22
+38
 67
 e1
 43
@@ -1115,7 +1123,7 @@
 20
 40
 62
-c2
+c4
 20
 40
 63
@@ -1127,7 +1135,7 @@
 c0
 00
 01
-1c
+1e
 6f
 e0
 c5
@@ -1152,6 +1160,86 @@
 20
 63
 40
+70
+44
+ec
+ff
+20
+40
+01
+25
+20
+40
+63
+29
+20
+20
+73
+9a
+6f
+e0
+c6
+ce
+20
+7a
+00
+00
+6f
+e0
+c5
+23
+1f
+e2
+72
+00
+da
+20
+45
+26
+ef
+e0
+80
+11
+68
+48
+c6
+cf
+98
+46
+7c
+00
+20
+22
+81
+30
+1f
+e2
+04
+00
+20
+40
+01
+33
+1a
+20
+a2
+01
+c2
+00
+01
+2a
+20
+60
+00
+00
+79
+20
+04
+07
+20
+20
+6e
+dd
 df
 e0
 00
@@ -1171,7 +1259,7 @@
 c0
 18
 81
-27
+3d
 c0
 0a
 e2
@@ -1287,7 +1375,7 @@
 20
 40
 01
-51
+67
 2a
 2f
 fe
@@ -1319,7 +1407,7 @@
 20
 40
 01
-51
+67
 d8
 a0
 8a
@@ -1347,7 +1435,7 @@
 20
 21
 01
-46
+5c
 20
 20
 21
@@ -1451,7 +1539,7 @@
 20
 40
 01
-8a
+a0
 70
 8a
 08
@@ -1487,7 +1575,7 @@
 20
 40
 01
-80
+96
 6f
 f0
 8a
@@ -1531,7 +1619,7 @@
 20
 40
 01
-8a
+a0
 70
 80
 cd
@@ -1591,7 +1679,7 @@
 c3
 02
 81
-8b
+a1
 68
 59
 01
@@ -1627,7 +1715,7 @@
 c0
 08
 01
-aa
+c0
 58
 00
 57
@@ -1671,7 +1759,7 @@
 c0
 08
 01
-a7
+bd
 58
 00
 2b
@@ -1707,7 +1795,7 @@
 20
 20
 01
-a3
+b9
 58
 00
 83
@@ -1719,7 +1807,7 @@
 20
 20
 01
-98
+ae
 6f
 e0
 c3
@@ -1751,7 +1839,7 @@
 c5
 97
 81
-b9
+cf
 78
 3c
 fc
@@ -1795,7 +1883,7 @@
 20
 37
 01
-c2
+d8
 1b
 42
 04
@@ -1843,7 +1931,7 @@
 20
 40
 01
-d0
+e6
 6f
 e0
 81
@@ -1966,8 +2054,8 @@
 ad
 20
 40
-01
-f6
+02
+0c
 6f
 e0
 c0
@@ -2079,7 +2167,7 @@
 20
 22
 82
-09
+1f
 e7
 e0
 80
@@ -2099,7 +2187,7 @@
 c2
 00
 02
-03
+19
 1a
 42
 04
@@ -2108,8 +2196,8 @@
 60
 00
 00
-d8
-2a
+94
+8b
 aa
 55
 40
@@ -2470,96 +2558,8 @@
 55
 a2
 4c
-90
-0a
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+16
+84
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-8c
-ae
+d7
+66
Index: output/flash.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/flash.dat	(revision 4690)
+++ /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/flash.dat	(working copy)
@@ -2,7 +2,7 @@
 02
 aa
 55
-3a
+92
 08
 c2
 84
@@ -23,7 +23,7 @@
 c0
 0a
 01
-91
+a7
 c0
 0a
 80
@@ -43,11 +43,11 @@
 c0
 12
 81
-e5
+fb
 c0
 13
 81
-da
+f0
 c0
 58
 80
@@ -59,11 +59,11 @@
 c0
 6d
 01
-62
+78
 c0
 6e
 01
-72
+88
 20
 20
 23
@@ -71,7 +71,7 @@
 c0
 12
 01
-b3
+c9
 c0
 12
 80
@@ -83,7 +83,7 @@
 c0
 1c
 81
-ad
+c3
 c0
 1f
 80
@@ -91,7 +91,7 @@
 c0
 26
 81
-b1
+c7
 c1
 7f
 80
@@ -543,11 +543,11 @@
 20
 40
 01
-34
+4a
 20
 40
 01
-5f
+75
 20
 40
 00
@@ -563,7 +563,7 @@
 20
 20
 01
-61
+77
 20
 75
 80
@@ -1075,7 +1075,15 @@
 58
 00
 01
-1f
+21
+67
+e1
+43
+d5
+58
+00
+01
+35
 67
 e1
 43
@@ -1083,7 +1091,7 @@
 58
 00
 01
-22
+38
 67
 e1
 43
@@ -1115,7 +1123,7 @@
 20
 40
 62
-c2
+c4
 20
 40
 63
@@ -1127,7 +1135,7 @@
 c0
 00
 01
-1c
+1e
 6f
 e0
 c5
@@ -1152,6 +1160,86 @@
 20
 63
 40
+70
+44
+ec
+ff
+20
+40
+01
+25
+20
+40
+63
+29
+20
+20
+73
+9a
+6f
+e0
+c6
+ce
+20
+7a
+00
+00
+6f
+e0
+c5
+23
+1f
+e2
+72
+00
+da
+20
+45
+26
+ef
+e0
+80
+11
+68
+48
+c6
+cf
+98
+46
+7c
+00
+20
+22
+81
+30
+1f
+e2
+04
+00
+20
+40
+01
+33
+1a
+20
+a2
+01
+c2
+00
+01
+2a
+20
+60
+00
+00
+79
+20
+04
+07
+20
+20
+6e
+dd
 df
 e0
 00
@@ -1171,7 +1259,7 @@
 c0
 18
 81
-27
+3d
 c0
 0a
 e2
@@ -1287,7 +1375,7 @@
 20
 40
 01
-51
+67
 2a
 2f
 fe
@@ -1319,7 +1407,7 @@
 20
 40
 01
-51
+67
 d8
 a0
 8a
@@ -1347,7 +1435,7 @@
 20
 21
 01
-46
+5c
 20
 20
 21
@@ -1451,7 +1539,7 @@
 20
 40
 01
-8a
+a0
 70
 8a
 08
@@ -1487,7 +1575,7 @@
 20
 40
 01
-80
+96
 6f
 f0
 8a
@@ -1531,7 +1619,7 @@
 20
 40
 01
-8a
+a0
 70
 80
 cd
@@ -1591,7 +1679,7 @@
 c3
 02
 81
-8b
+a1
 68
 59
 01
@@ -1627,7 +1715,7 @@
 c0
 08
 01
-aa
+c0
 58
 00
 57
@@ -1671,7 +1759,7 @@
 c0
 08
 01
-a7
+bd
 58
 00
 2b
@@ -1707,7 +1795,7 @@
 20
 20
 01
-a3
+b9
 58
 00
 83
@@ -1719,7 +1807,7 @@
 20
 20
 01
-98
+ae
 6f
 e0
 c3
@@ -1751,7 +1839,7 @@
 c5
 97
 81
-b9
+cf
 78
 3c
 fc
@@ -1795,7 +1883,7 @@
 20
 37
 01
-c2
+d8
 1b
 42
 04
@@ -1843,7 +1931,7 @@
 20
 40
 01
-d0
+e6
 6f
 e0
 81
@@ -1966,8 +2054,8 @@
 ad
 20
 40
-01
-f6
+02
+0c
 6f
 e0
 c0
@@ -2079,7 +2167,7 @@
 20
 22
 82
-09
+1f
 e7
 e0
 80
@@ -2099,7 +2187,7 @@
 c2
 00
 02
-03
+19
 1a
 42
 04
@@ -2108,8 +2196,8 @@
 60
 00
 00
-d8
-2a
+94
+8b
 aa
 55
 40
@@ -2470,96 +2558,8 @@
 55
 a2
 4c
-90
-0a
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
-ff
+16
+84
 ff
 ff
 ff
@@ -8188,5 +8188,5 @@
 ff
 ff
 ff
-8c
-ae
+d7
+66
Index: output/otp.dat
===================================================================
--- /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/otp.dat	(revision 4690)
+++ /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/otp.dat	(working copy)
@@ -11,7 +11,7 @@
 00
 aa
 55
-3a
+92
 08
 c2
 84
@@ -32,7 +32,7 @@
 c0
 0a
 01
-91
+a7
 c0
 0a
 80
@@ -52,11 +52,11 @@
 c0
 12
 81
-e5
+fb
 c0
 13
 81
-da
+f0
 c0
 58
 80
@@ -68,11 +68,11 @@
 c0
 6d
 01
-62
+78
 c0
 6e
 01
-72
+88
 20
 20
 23
@@ -80,7 +80,7 @@
 c0
 12
 01
-b3
+c9
 c0
 12
 80
@@ -92,7 +92,7 @@
 c0
 1c
 81
-ad
+c3
 c0
 1f
 80
@@ -100,7 +100,7 @@
 c0
 26
 81
-b1
+c7
 c1
 7f
 80
@@ -552,11 +552,11 @@
 20
 40
 01
-34
+4a
 20
 40
 01
-5f
+75
 20
 40
 00
@@ -572,7 +572,7 @@
 20
 20
 01
-61
+77
 20
 75
 80
@@ -1084,7 +1084,15 @@
 58
 00
 01
-1f
+21
+67
+e1
+43
+d5
+58
+00
+01
+35
 67
 e1
 43
@@ -1092,7 +1100,7 @@
 58
 00
 01
-22
+38
 67
 e1
 43
@@ -1124,7 +1132,7 @@
 20
 40
 62
-c2
+c4
 20
 40
 63
@@ -1136,7 +1144,7 @@
 c0
 00
 01
-1c
+1e
 6f
 e0
 c5
@@ -1161,6 +1169,86 @@
 20
 63
 40
+70
+44
+ec
+ff
+20
+40
+01
+25
+20
+40
+63
+29
+20
+20
+73
+9a
+6f
+e0
+c6
+ce
+20
+7a
+00
+00
+6f
+e0
+c5
+23
+1f
+e2
+72
+00
+da
+20
+45
+26
+ef
+e0
+80
+11
+68
+48
+c6
+cf
+98
+46
+7c
+00
+20
+22
+81
+30
+1f
+e2
+04
+00
+20
+40
+01
+33
+1a
+20
+a2
+01
+c2
+00
+01
+2a
+20
+60
+00
+00
+79
+20
+04
+07
+20
+20
+6e
+dd
 df
 e0
 00
@@ -1180,7 +1268,7 @@
 c0
 18
 81
-27
+3d
 c0
 0a
 e2
@@ -1296,7 +1384,7 @@
 20
 40
 01
-51
+67
 2a
 2f
 fe
@@ -1328,7 +1416,7 @@
 20
 40
 01
-51
+67
 d8
 a0
 8a
@@ -1356,7 +1444,7 @@
 20
 21
 01
-46
+5c
 20
 20
 21
@@ -1460,7 +1548,7 @@
 20
 40
 01
-8a
+a0
 70
 8a
 08
@@ -1496,7 +1584,7 @@
 20
 40
 01
-80
+96
 6f
 f0
 8a
@@ -1540,7 +1628,7 @@
 20
 40
 01
-8a
+a0
 70
 80
 cd
@@ -1600,7 +1688,7 @@
 c3
 02
 81
-8b
+a1
 68
 59
 01
@@ -1636,7 +1724,7 @@
 c0
 08
 01
-aa
+c0
 58
 00
 57
@@ -1680,7 +1768,7 @@
 c0
 08
 01
-a7
+bd
 58
 00
 2b
@@ -1716,7 +1804,7 @@
 20
 20
 01
-a3
+b9
 58
 00
 83
@@ -1728,7 +1816,7 @@
 20
 20
 01
-98
+ae
 6f
 e0
 c3
@@ -1760,7 +1848,7 @@
 c5
 97
 81
-b9
+cf
 78
 3c
 fc
@@ -1804,7 +1892,7 @@
 20
 37
 01
-c2
+d8
 1b
 42
 04
@@ -1852,7 +1940,7 @@
 20
 40
 01
-d0
+e6
 6f
 e0
 81
@@ -1975,8 +2063,8 @@
 ad
 20
 40
-01
-f6
+02
+0c
 6f
 e0
 c0
@@ -2088,7 +2176,7 @@
 20
 22
 82
-09
+1f
 e7
 e0
 80
@@ -2108,7 +2196,7 @@
 c2
 00
 02
-03
+19
 1a
 42
 04
@@ -2117,8 +2205,8 @@
 60
 00
 00
-d8
-2a
+94
+8b
 aa
 55
 40
@@ -2479,5 +2567,5 @@
 55
 a2
 4c
-90
-0a
+16
+84
Index: output/program.lis
===================================================================
--- /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/program.lis	(revision 4690)
+++ /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/program.lis	(working copy)
@@ -4,26 +4,26 @@
 0001 c0000018 beq patch00_0 ,p_soft_reset 
 0002 c0010048 beq patch00_2 ,p_main_loop 
 0003 c0088051 beq patch02_1 ,p_set_sync_on 
-0004 c00a0191 beq patch02_4 ,p_set_lemode 
+0004 c00a01a7 beq patch02_4 ,p_set_lemode 
 0005 c00a80de beq patch02_5 ,p_rf_rx_enable 
 0006 c00c00ec beq patch03_0 ,p_txon 
 0007 c00c80ab beq patch03_1 ,p_set_tx_power 
 0008 c00d0063 beq patch03_2 ,p_initialize_radio_cont 
-0009 c01281e5 beq patch04_5 ,p_lpm_sleep 
-000a c01381da beq patch04_7 ,p_lpm_adjust_clk 
+0009 c01281fb beq patch04_5 ,p_lpm_sleep 
+000a c01381f0 beq patch04_7 ,p_lpm_adjust_clk 
 000b c05880f6 beq patch16_1 ,p_shutter_init 
 000c c06280f3 beq patch18_5 ,p_otp_read_data 
-000d c06d0162 beq patch1b_2 ,p_sadc_calibration 
-000e c06e0172 beq patch1b_4 ,p_enable_adc 
+000d c06d0178 beq patch1b_2 ,p_sadc_calibration 
+000e c06e0188 beq patch1b_4 ,p_enable_adc 
 000f 2020235a branch assert 
 
 pf_patch_ext:
-0010 c01201b3 beq patch24_4 ,p_le_receive_rxon 
+0010 c01201c9 beq patch24_4 ,p_le_receive_rxon 
 0011 c0128043 beq patch24_5 ,p_le_rx_dec 
 0012 c0130033 beq patch24_6 ,p_le_rx_nopayload 
-0013 c01c81ad beq patch27_1 ,p_le_parse 
+0013 c01c81c3 beq patch27_1 ,p_le_parse 
 0014 c01f801c beq patch27_7 ,p_le_lpm_set_mult 
-0015 c02681b1 beq patch29_5 ,p_le_init_adv 
+0015 c02681c7 beq patch29_5 ,p_le_init_adv 
 0016 c17f8000 rtneq patch3f_7 
 0017 2020235a branch assert 
 
@@ -158,12 +158,12 @@
 0083 58557474 setarg 0x557474 
 0084 67f18968 store 3 ,0x8968 
 0085 7089606e jam 0x6e ,0x8960 
-0086 20400134 call p_rx_dcoc 
-0087 2040015f call p_rfpll_aac_ghpc 
+0086 2040014a call p_rx_dcoc 
+0087 20400175 call p_rfpll_aac_ghpc 
 0088 2040008c call p_set_xtal_cap 
 0089 7041480c jam system_clk_12m ,mem_system_clk 
 008a 20406f4e call sadc_calibration 
-008b 20200161 branch p_dpll_ring_ibias_calc 
+008b 20200177 branch p_dpll_ring_ibias_calc 
 
 p_set_xtal_cap:
 008c 20758000 rtn wake 
@@ -317,335 +317,367 @@
 0108 67e44512 store 8 ,mem_ble_shutter_discovery_timeout 
 0109 6fe448a6 fetch 8 ,mem_shutter_reconn_or_discovery_blink_time_conf 
 010a 67e444fa store 8 ,mem_ble_shutter_reconn_blink_on_time 
-010b 5800011f setarg p_shutter_process_idle 
-010c 67e143db store 2 ,mem_cb_idle_process 
-010d 58000122 setarg p_shutter_process_bb_event 
-010e 67e143dd store 2 ,mem_cb_bb_event_process 
-010f 5800638a setarg ble_shutter_receive_data 
-0110 67e143df store 2 ,mem_cb_att_write 
-0111 5800630e setarg shutter_le_bb_event_timer 
-0112 67e143e3 store 2 ,mem_cb_event_timer 
-0113 58006365 setarg shutter_key_change 
-0114 67e14524 store 2 ,mem_cb_shutter_keycan 
-0115 204062c2 call shutter_common_init 
-0116 20406396 call shutter_load_buffer_config_form_datarom 
+010b 58000121 setarg p_shutter_le_before_hibernate 
+010c 67e143d5 store 2 ,mem_cb_before_hibernate 
+010d 58000135 setarg p_shutter_process_idle 
+010e 67e143db store 2 ,mem_cb_idle_process 
+010f 58000138 setarg p_shutter_process_bb_event 
+0110 67e143dd store 2 ,mem_cb_bb_event_process 
+0111 5800638a setarg ble_shutter_receive_data 
+0112 67e143df store 2 ,mem_cb_att_write 
+0113 5800630e setarg shutter_le_bb_event_timer 
+0114 67e143e3 store 2 ,mem_cb_event_timer 
+0115 58006365 setarg shutter_key_change 
+0116 67e14524 store 2 ,mem_cb_shutter_keycan 
+0117 204062c4 call shutter_common_init + 2 
+0118 20406396 call shutter_load_buffer_config_form_datarom 
 
 p_shutter_power_switch:
-0117 6fe0c51a fetch 1 ,mem_shutter_hard_soft_switch_case 
-0118 c000011c beq hard_switch ,p_shutter_hart_swtich_power_on 
-0119 6fe0c51b fetch 1 ,mem_shutter_soft_switch_button_gpio 
-011a 67e0c4ec store 1 ,mem_ui_button_gpio 
-011b 202063a1 branch ui_soft_swtich_init 
+0119 6fe0c51a fetch 1 ,mem_shutter_hard_soft_switch_case 
+011a c000011e beq hard_switch ,p_shutter_hart_swtich_power_on 
+011b 6fe0c51b fetch 1 ,mem_shutter_soft_switch_button_gpio 
+011c 67e0c4ec store 1 ,mem_ui_button_gpio 
+011d 202063a1 branch ui_soft_swtich_init 
 
 p_shutter_hart_swtich_power_on:
-011c 7044ecff jam ui_button_gpio_disable ,mem_ui_button_gpio 
-011d 70451c01 jam ss_state_power_on ,mem_shutter_soft_switch_power_state 
-011e 20206340 branch shutter_start_reconnect 
+011e 7044ecff jam ui_button_gpio_disable ,mem_ui_button_gpio 
+011f 70451c01 jam ss_state_power_on ,mem_shutter_soft_switch_power_state 
+0120 20206340 branch shutter_start_reconnect 
+
+p_shutter_le_before_hibernate:
+0121 7044ecff jam gpio_disable ,mem_ui_button_gpio 
+0122 20400125 call p_set_key_gpio_before_hiernate 
+0123 20406329 call shutter_process_lpm_before 
+0124 2020739a branch disable_authrom 
+
+p_set_key_gpio_before_hiernate:
+0125 6fe0c6ce fetch 1 ,mem_shutter_hard_soft_switch_case_temp 
+0126 207a0000 rtn blank 
+0127 6fe0c523 fetch 1 ,mem_shutter_key_num 
+0128 1fe27200 copy pdata ,loopcnt 
+0129 da204526 arg mem_shutter_key_conf0 ,rega 
+
+p_set_key_gpio_loop:
+012a efe08011 ifetch 1 ,rega 
+012b 6848c6cf fetcht 1 ,mem_shutter_soft_switch_button_gpio_temp 
+012c 98467c00 isub temp ,null 
+012d 20228130 branch p_set_key_gpio_loop_end ,zero 
+012e 1fe20400 copy pdata ,temp 
+012f 20400133 call p_shutter_gpio_config_input_pd 
+
+p_set_key_gpio_loop_end:
+0130 1a20a201 increase 1 ,rega 
+0131 c200012a loop p_set_key_gpio_loop 
+0132 20600000 rtn 
+
+p_shutter_gpio_config_input_pd:
+0133 79200407 set1 gpio_active_bit ,temp 
+0134 20206edd branch gpio_config_input 
 
 p_shutter_process_idle:
-011f dfe0000a arg 10 ,pdata 
-0120 204070c8 call wdt_init_config 
-0121 20206327 branch shutter_process_idle 
+0135 dfe0000a arg 10 ,pdata 
+0136 204070c8 call wdt_init_config 
+0137 20206327 branch shutter_process_idle 
 
 p_shutter_process_bb_event:
-0122 1a627e00 copy regc ,pdata 
-0123 c0188127 beq bt_evt_le_pairing_success ,p_ble_shutter_pair_success 
-0124 c00ae2e6 beq bt_evt_le_disconnected ,ble_shutter_process_baseband_disconnect 
-0125 c01fe2e9 beq bt_evt_le_reconnect_complete ,ble_shutter_process_reconnect_complete 
-0126 202062da branch shutter_process_bb_event + 1 
+0138 1a627e00 copy regc ,pdata 
+0139 c018813d beq bt_evt_le_pairing_success ,p_ble_shutter_pair_success 
+013a c00ae2e6 beq bt_evt_le_disconnected ,ble_shutter_process_baseband_disconnect 
+013b c01fe2e9 beq bt_evt_le_reconnect_complete ,ble_shutter_process_reconnect_complete 
+013c 202062da branch shutter_process_bb_event + 1 
 
 p_ble_shutter_pair_success:
-0127 7048ae01 jam 1 ,mem_shutter_ble_connect_flag 
-0128 20600000 rtn 
+013d 7048ae01 jam 1 ,mem_shutter_ble_connect_flag 
+013e 20600000 rtn 
 
 p_ble_shutter_process_baseband_disconnect:
-0129 7048ae00 jam 0 ,mem_shutter_ble_connect_flag 
-012a 204078ad call queue_init 
-012b 7044f100 jam 0 ,mem_ble_shutter_enable_notify 
-012c 20206340 branch shutter_start_reconnect 
+013f 7048ae00 jam 0 ,mem_shutter_ble_connect_flag 
+0140 204078ad call queue_init 
+0141 7044f100 jam 0 ,mem_ble_shutter_enable_notify 
+0142 20206340 branch shutter_start_reconnect 
 
 p_ble_shutter_process_reconnect_complete:
-012d 7048ae01 jam 1 ,mem_shutter_ble_connect_flag 
-012e 204078ad call queue_init 
-012f 7044f101 jam 1 ,mem_ble_shutter_enable_notify 
-0130 6fe44502 fetch 8 ,mem_ble_shutter_interval_min 
-0131 67e442d3 store 8 ,mem_le_interval_min 
-0132 2040432b call app_lpm_mult_enable 
-0133 20202e93 branch le_l2cap_tx_update_req 
+0143 7048ae01 jam 1 ,mem_shutter_ble_connect_flag 
+0144 204078ad call queue_init 
+0145 7044f101 jam 1 ,mem_ble_shutter_enable_notify 
+0146 6fe44502 fetch 8 ,mem_ble_shutter_interval_min 
+0147 67e442d3 store 8 ,mem_le_interval_min 
+0148 2040432b call app_lpm_mult_enable 
+0149 20202e93 branch le_l2cap_tx_update_req 
 
 p_rx_dcoc:
-0134 20758000 rtn wake 
-0135 20402160 call set_sync_on 
-0136 d8400027 arg 39 ,temp 
-0137 2040216f call set_freq_rx 
-0138 204021a6 call rf_rx_enable 
-0139 708a257f jam 0x7f ,0x8a25 
-013a 708a301a jam 0x1a ,0x8a30 
-013b 708a3178 jam 0x78 ,0x8a31 
-013c 708a8fb2 jam 0xb2 ,0x8a8f 
-013d 708ac200 jam 0 ,0x8ac2 
-013e 708ac300 jam 0 ,0x8ac3 
-013f d8e00006 arg 6 ,queue 
-0140 20400151 call p_rx_dcoc_avg 
-0141 2a2ffe0d isolate1 13 ,rega 
-0142 2040211d call qset_start 
-0143 2a4ffe0d isolate1 13 ,regb 
-0144 2040211e call qset_p 
-0145 d8e00005 arg 5 ,queue 
+014a 20758000 rtn wake 
+014b 20402160 call set_sync_on 
+014c d8400027 arg 39 ,temp 
+014d 2040216f call set_freq_rx 
+014e 204021a6 call rf_rx_enable 
+014f 708a257f jam 0x7f ,0x8a25 
+0150 708a301a jam 0x1a ,0x8a30 
+0151 708a3178 jam 0x78 ,0x8a31 
+0152 708a8fb2 jam 0xb2 ,0x8a8f 
+0153 708ac200 jam 0 ,0x8ac2 
+0154 708ac300 jam 0 ,0x8ac3 
+0155 d8e00006 arg 6 ,queue 
+0156 20400167 call p_rx_dcoc_avg 
+0157 2a2ffe0d isolate1 13 ,rega 
+0158 2040211d call qset_start 
+0159 2a4ffe0d isolate1 13 ,regb 
+015a 2040211e call qset_p 
+015b d8e00005 arg 5 ,queue 
 
 p_rx_dcoc_loop2:
-0146 2040211c call qset1_p 
-0147 2040211e call qset_p 
-0148 20400151 call p_rx_dcoc_avg 
-0149 d8a08ac2 arg 0x8ac2 ,contw 
-014a 1a31fe00 rshift4 rega ,pdata 
-014b 20402117 call qsetxor 
-014c 1a51fe00 rshift4 regb ,pdata 
-014d 20402117 call qsetxor 
-014e 18e08fff increase -1 ,queue 
-014f 20210146 branch p_rx_dcoc_loop2 ,positive 
-0150 2020214f branch rx_dcoc_loop2 + 10 
+015c 2040211c call qset1_p 
+015d 2040211e call qset_p 
+015e 20400167 call p_rx_dcoc_avg 
+015f d8a08ac2 arg 0x8ac2 ,contw 
+0160 1a31fe00 rshift4 rega ,pdata 
+0161 20402117 call qsetxor 
+0162 1a51fe00 rshift4 regb ,pdata 
+0163 20402117 call qsetxor 
+0164 18e08fff increase -1 ,queue 
+0165 2021015c branch p_rx_dcoc_loop2 ,positive 
+0166 2020214f branch rx_dcoc_loop2 + 10 
 
 p_rx_dcoc_avg:
-0151 2000003c nop 60 
-0152 58000f00 setarg mem_dcoc_buf 
-0153 67f10982 store 2 ,0x8982 
-0154 58000ff0 setarg mem_dcoc_buf_end 
-0155 67f10984 store 2 ,0x8984 
-0156 70898109 jam 0x9 ,0x8981 
-0157 70898103 jam 0x3 ,0x8981 
-0158 70898006 jam 0x6 ,0x8980 
-0159 2000003c nop 60 
-015a da200000 arg 0 ,rega 
-015b da400000 arg 0 ,regb 
-015c df200010 arg 16 ,loopcnt 
-015d d8c00f00 arg mem_dcoc_buf ,contr 
-015e 2020212d branch rx_dcoc_loop 
+0167 2000003c nop 60 
+0168 58000f00 setarg mem_dcoc_buf 
+0169 67f10982 store 2 ,0x8982 
+016a 58000ff0 setarg mem_dcoc_buf_end 
+016b 67f10984 store 2 ,0x8984 
+016c 70898109 jam 0x9 ,0x8981 
+016d 70898103 jam 0x3 ,0x8981 
+016e 70898006 jam 0x6 ,0x8980 
+016f 2000003c nop 60 
+0170 da200000 arg 0 ,rega 
+0171 da400000 arg 0 ,regb 
+0172 df200010 arg 16 ,loopcnt 
+0173 d8c00f00 arg mem_dcoc_buf ,contr 
+0174 2020212d branch rx_dcoc_loop 
 
 p_rfpll_aac_ghpc:
-015f 20758000 rtn wake 
-0160 20202272 branch rfpll_aac_ghpc + 1 
+0175 20758000 rtn wake 
+0176 20202272 branch rfpll_aac_ghpc + 1 
 
 p_dpll_ring_ibias_calc:
-0161 20600000 rtn 
+0177 20600000 rtn 
 
 p_sadc_calibration:
-0162 20758000 rtn wake 
-0163 708a0777 jam 0x77 ,core_gpadc_ctrl 
-0164 708a08c9 jam 0xc9 ,core_gpadc_cfg0 
-0165 708a0b01 jam 0x01 ,core_gpadc_cfg3 
-0166 6fe0c409 fetch 1 ,mem_adc_clkdiv 
-0167 67f080cd store 1 ,core_sadc_clkdiv 
-0168 20000bb8 nop 3000 
-0169 2040018a call p_sadc_read 
-016a 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
-016b 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
-016c df200008 arg 8 ,loopcnt 
-016d 20406f58 call sadc_cal_read + 1 
-016e 6fe0c419 fetch 1 ,mem_spi_write_addr 
-016f 67e0c433 store 1 ,mem_adc_cal_c7 
-0170 6240c419 storer regb ,1 ,mem_spi_write_addr 
-0171 20600000 rtn 
+0178 20758000 rtn wake 
+0179 708a0777 jam 0x77 ,core_gpadc_ctrl 
+017a 708a08c9 jam 0xc9 ,core_gpadc_cfg0 
+017b 708a0b01 jam 0x01 ,core_gpadc_cfg3 
+017c 6fe0c409 fetch 1 ,mem_adc_clkdiv 
+017d 67f080cd store 1 ,core_sadc_clkdiv 
+017e 20000bb8 nop 3000 
+017f 204001a0 call p_sadc_read 
+0180 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
+0181 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
+0182 df200008 arg 8 ,loopcnt 
+0183 20406f58 call sadc_cal_read + 1 
+0184 6fe0c419 fetch 1 ,mem_spi_write_addr 
+0185 67e0c433 store 1 ,mem_adc_cal_c7 
+0186 6240c419 storer regb ,1 ,mem_spi_write_addr 
+0187 20600000 rtn 
 
 p_enable_adc:
-0172 20400180 call p_sadc_cal_write 
-0173 6ff08a09 fetch 1 ,core_gpadc_cfg1 
-0174 793ffe07 set0 7 ,pdata 
-0175 67f08a09 store 1 ,core_gpadc_cfg1 
-0176 708a0777 jam 0x77 ,core_gpadc_ctrl 
-0177 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
-0178 708a0b01 jam 0x01 ,core_gpadc_cfg3 
-0179 20406f90 call sadc_channel 
-017a 6fe0c409 fetch 1 ,mem_adc_clkdiv 
-017b 67f080cd store 1 ,core_sadc_clkdiv 
-017c 20000bb8 nop 3000 
-017d 2040018a call p_sadc_read 
-017e 7080cd00 jam 0 ,core_sadc_clkdiv 
-017f 20206fa1 branch sadc_dma 
+0188 20400196 call p_sadc_cal_write 
+0189 6ff08a09 fetch 1 ,core_gpadc_cfg1 
+018a 793ffe07 set0 7 ,pdata 
+018b 67f08a09 store 1 ,core_gpadc_cfg1 
+018c 708a0777 jam 0x77 ,core_gpadc_ctrl 
+018d 708a08c1 jam 0xc1 ,core_gpadc_cfg0 
+018e 708a0b01 jam 0x01 ,core_gpadc_cfg3 
+018f 20406f90 call sadc_channel 
+0190 6fe0c409 fetch 1 ,mem_adc_clkdiv 
+0191 67f080cd store 1 ,core_sadc_clkdiv 
+0192 20000bb8 nop 3000 
+0193 204001a0 call p_sadc_read 
+0194 7080cd00 jam 0 ,core_sadc_clkdiv 
+0195 20206fa1 branch sadc_dma 
 
 p_sadc_cal_write:
-0180 6ff080cc fetch 1 ,core_sadc_ctrl 
-0181 79207e01 set1 1 ,pdata 
-0182 67f080cc store 1 ,core_sadc_ctrl 
-0183 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
-0184 6fe0c433 fetch 1 ,mem_adc_cal_c7 
-0185 67e0c419 store 1 ,mem_spi_write_addr 
-0186 df200008 arg 8 ,loopcnt 
-0187 20406f67 call sadc_cal_write + 4 
-0188 6240c419 storer regb ,1 ,mem_spi_write_addr 
-0189 20600000 rtn 
+0196 6ff080cc fetch 1 ,core_sadc_ctrl 
+0197 79207e01 set1 1 ,pdata 
+0198 67f080cc store 1 ,core_sadc_ctrl 
+0199 6a40c419 fetchr regb ,1 ,mem_spi_write_addr 
+019a 6fe0c433 fetch 1 ,mem_adc_cal_c7 
+019b 67e0c419 store 1 ,mem_spi_write_addr 
+019c df200008 arg 8 ,loopcnt 
+019d 20406f67 call sadc_cal_write + 4 
+019e 6240c419 storer regb ,1 ,mem_spi_write_addr 
+019f 20600000 rtn 
 
 p_sadc_read:
-018a 7080cc03 jam 0x03 ,core_sadc_ctrl 
+01a0 7080cc03 jam 0x03 ,core_sadc_ctrl 
 
 p_sadc_read_wait:
-018b 6ff08129 fetch 1 ,core_perf_status 
-018c c302818b bbit0 saradc_done ,p_sadc_read_wait 
-018d 68590164 fetcht 2 ,core_sadc_data 
-018e 6049440a storet 2 ,mem_adc_current_value 
-018f 7080cc00 jam 0x00 ,core_sadc_ctrl 
-0190 20600000 rtn 
+01a1 6ff08129 fetch 1 ,core_perf_status 
+01a2 c30281a1 bbit0 saradc_done ,p_sadc_read_wait 
+01a3 68590164 fetcht 2 ,core_sadc_data 
+01a4 6049440a storet 2 ,mem_adc_current_value 
+01a5 7080cc00 jam 0x00 ,core_sadc_ctrl 
+01a6 20600000 rtn 
 
 p_set_lemode:
-0191 708a8211 jam 0x11 ,0x8a82 
-0192 708a8d12 jam 0x12 ,0x8a8d 
-0193 708a8e0a jam 0x0a ,0x8a8e 
-0194 6fe0c099 fetch 1 ,mem_fcomp_div 
-0195 c00801aa beq xtal_16m ,p_set_lemode_2m_16m 
-0196 58005762 setarg 0x5762 
-0197 67f10907 store 2 ,0x8907 
+01a7 708a8211 jam 0x11 ,0x8a82 
+01a8 708a8d12 jam 0x12 ,0x8a8d 
+01a9 708a8e0a jam 0x0a ,0x8a8e 
+01aa 6fe0c099 fetch 1 ,mem_fcomp_div 
+01ab c00801c0 beq xtal_16m ,p_set_lemode_2m_16m 
+01ac 58005762 setarg 0x5762 
+01ad 67f10907 store 2 ,0x8907 
 
 p_set_lemode_2m:
-0198 70890103 jam 3 ,0x8901 
-0199 70893003 jam 3 ,0x8930 
-019a c6168000 rtnmark1 mark_ble_2m 
-019b 70890101 jam 1 ,0x8901 
-019c 708a8207 jam 0x07 ,0x8a82 
-019d 708a8d44 jam 0x44 ,0x8a8d 
-019e 708a8e0a jam 0x0a ,0x8a8e 
-019f 6fe0c099 fetch 1 ,mem_fcomp_div 
-01a0 c00801a7 beq xtal_16m ,p_set_lemode_1m_16m 
-01a1 58002bb1 setarg 0x2bb1 
-01a2 67f10907 store 2 ,0x8907 
+01ae 70890103 jam 3 ,0x8901 
+01af 70893003 jam 3 ,0x8930 
+01b0 c6168000 rtnmark1 mark_ble_2m 
+01b1 70890101 jam 1 ,0x8901 
+01b2 708a8207 jam 0x07 ,0x8a82 
+01b3 708a8d44 jam 0x44 ,0x8a8d 
+01b4 708a8e0a jam 0x0a ,0x8a8e 
+01b5 6fe0c099 fetch 1 ,mem_fcomp_div 
+01b6 c00801bd beq xtal_16m ,p_set_lemode_1m_16m 
+01b7 58002bb1 setarg 0x2bb1 
+01b8 67f10907 store 2 ,0x8907 
 
 p_set_lemode_1m:
-01a3 c6978000 rtnmark0 mark_ble_lr 
-01a4 70893024 jam 0x24 ,0x8930 
-01a5 70890105 jam 5 ,0x8901 
-01a6 20600000 rtn 
+01b9 c6978000 rtnmark0 mark_ble_lr 
+01ba 70893024 jam 0x24 ,0x8930 
+01bb 70890105 jam 5 ,0x8901 
+01bc 20600000 rtn 
 
 p_set_lemode_1m_16m:
-01a7 58004189 setarg 0x4189 
-01a8 67f10907 store 2 ,0x8907 
-01a9 202001a3 branch p_set_lemode_1m 
+01bd 58004189 setarg 0x4189 
+01be 67f10907 store 2 ,0x8907 
+01bf 202001b9 branch p_set_lemode_1m 
 
 p_set_lemode_2m_16m:
-01aa 58008312 setarg 0x8312 
-01ab 67f10907 store 2 ,0x8907 
-01ac 20200198 branch p_set_lemode_2m 
+01c0 58008312 setarg 0x8312 
+01c1 67f10907 store 2 ,0x8907 
+01c2 202001ae branch p_set_lemode_2m 
 
 p_le_parse:
-01ad 6fe0c334 fetch 1 ,mem_le_packet_llid 
-01ae c1000000 rtneq llid_reserved 
-01af c001b04a beq llid_le_ll ,le_parse_ll 
-01b0 202028e1 branch le_parse_l2cap 
+01c3 6fe0c334 fetch 1 ,mem_le_packet_llid 
+01c4 c1000000 rtneq llid_reserved 
+01c5 c001b04a beq llid_le_ll ,le_parse_ll 
+01c6 202028e1 branch le_parse_l2cap 
 
 p_le_init_adv:
-01b1 793f8030 set0 mark_ble_crc_fail ,mark 
-01b2 20202af6 branch le_init_adv + 1 
+01c7 793f8030 set0 mark_ble_crc_fail ,mark 
+01c8 20202af6 branch le_init_adv + 1 
 
 p_le_receive_rxon:
-01b3 204025c2 call le_prep 
-01b4 c59781b9 bmark0 mark_ble_lr ,p_le_receive_nolr 
-01b5 783cfc00 pulse dewhiten_code_calc 
-01b6 2000001e nop 30 
-01b7 204025c2 call le_prep 
-01b8 19699600 lshift3 timeup ,timeup 
+01c9 204025c2 call le_prep 
+01ca c59781cf bmark0 mark_ble_lr ,p_le_receive_nolr 
+01cb 783cfc00 pulse dewhiten_code_calc 
+01cc 2000001e nop 30 
+01cd 204025c2 call le_prep 
+01ce 19699600 lshift3 timeup ,timeup 
 
 p_le_receive_nolr:
-01b9 7856fc00 disable match 
-01ba 7826fc00 enable decode_fec0 
-01bb 7830fc00 enable is_rx 
-01bc 78507c00 disable is_tx 
-01bd 19623600 copy timeup ,stop_watch 
-01be 37c18400 correlate null ,timeout 
-01bf 203701c2 branch p_le_receive_on_attempt ,attempt 
-01c0 1b420400 copy clke ,temp 
-01c1 604b000f storet 6 ,mem_sync_clke 
+01cf 7856fc00 disable match 
+01d0 7826fc00 enable decode_fec0 
+01d1 7830fc00 enable is_rx 
+01d2 78507c00 disable is_tx 
+01d3 19623600 copy timeup ,stop_watch 
+01d4 37c18400 correlate null ,timeout 
+01d5 203701d8 branch p_le_receive_on_attempt ,attempt 
+01d6 1b420400 copy clke ,temp 
+01d7 604b000f storet 6 ,mem_sync_clke 
 
 p_le_receive_on_attempt:
-01c2 242c26fa nbranch le_unsync_end ,sync 
-01c3 78287c00 enable swfine 
-01c4 6fe0c167 fetch 1 ,mem_le_tx_ifs_defference 
-01c5 d8404e20 arg param_20ms_init ,temp 
-01c6 98408400 iadd temp ,temp 
-01c7 6fe0c148 fetch 1 ,mem_system_clk 
-01c8 984fb600 imul32 temp ,stop_watch 
-01c9 20406877 call rf_debug_rx_sync_line 
-01ca 20372677 branch le_receive_skip ,attempt 
-01cb 204001d0 call p_calc_clke_all_modem 
-01cc 6fe08168 fetch 1 ,mem_le_state 
-01cd c301a677 bbit0 lestate_got_first_packet ,le_receive_skip 
-01ce 2055a477 call lpm_adjust_clk ,wake 
-01cf 20202677 branch le_receive_skip 
+01d8 242c26fa nbranch le_unsync_end ,sync 
+01d9 78287c00 enable swfine 
+01da 6fe0c167 fetch 1 ,mem_le_tx_ifs_defference 
+01db d8404e20 arg param_20ms_init ,temp 
+01dc 98408400 iadd temp ,temp 
+01dd 6fe0c148 fetch 1 ,mem_system_clk 
+01de 984fb600 imul32 temp ,stop_watch 
+01df 20406877 call rf_debug_rx_sync_line 
+01e0 20372677 branch le_receive_skip ,attempt 
+01e1 204001e6 call p_calc_clke_all_modem 
+01e2 6fe08168 fetch 1 ,mem_le_state 
+01e3 c301a677 bbit0 lestate_got_first_packet ,le_receive_skip 
+01e4 2055a477 call lpm_adjust_clk ,wake 
+01e5 20202677 branch le_receive_skip 
 
 p_calc_clke_all_modem:
-01d0 684b000f fetcht 6 ,mem_sync_clke 
-01d1 1b427e00 copy clke ,pdata 
-01d2 20407d12 call clk_diff 
-01d3 1fe20400 copy pdata ,temp 
-01d4 204026ff call calc_clke_all_modem 
-01d5 1b425600 copy clke ,rege 
-01d6 1d227e00 copy clke_rt ,pdata 
-01d7 9840fe00 iadd temp ,pdata 
-01d8 1fe25200 copy pdata ,clke_rt 
-01d9 20600000 rtn 
+01e6 684b000f fetcht 6 ,mem_sync_clke 
+01e7 1b427e00 copy clke ,pdata 
+01e8 20407d12 call clk_diff 
+01e9 1fe20400 copy pdata ,temp 
+01ea 204026ff call calc_clke_all_modem 
+01eb 1b425600 copy clke ,rege 
+01ec 1d227e00 copy clke_rt ,pdata 
+01ed 9840fe00 iadd temp ,pdata 
+01ee 1fe25200 copy pdata ,clke_rt 
+01ef 20600000 rtn 
 
 p_lpm_adjust_clk:
-01da c584a489 bmark0 mark_context ,lpm_clear_counter 
-01db 684a40ad fetcht 4 ,mem_sleep_counter_all 
-01dc dfe00600 arg 0x600 ,pdata 
-01dd 98467c00 isub temp ,null 
-01de 20610000 rtn positive 
-01df 18422200 copy temp ,rega 
-01e0 684b000f fetcht 6 ,mem_sync_clke 
-01e1 1d627e00 deposit rege 
-01e2 20407d10 call clk_diff_rt 
-01e3 1a220400 copy rega ,temp 
-01e4 2020247d branch lpm_adjust_clk + 6 
+01f0 c584a489 bmark0 mark_context ,lpm_clear_counter 
+01f1 684a40ad fetcht 4 ,mem_sleep_counter_all 
+01f2 dfe00600 arg 0x600 ,pdata 
+01f3 98467c00 isub temp ,null 
+01f4 20610000 rtn positive 
+01f5 18422200 copy temp ,rega 
+01f6 684b000f fetcht 6 ,mem_sync_clke 
+01f7 1d627e00 deposit rege 
+01f8 20407d10 call clk_diff_rt 
+01f9 1a220400 copy rega ,temp 
+01fa 2020247d branch lpm_adjust_clk + 6 
 
 p_lpm_sleep:
-01e5 6fe143e9 fetch 2 ,mem_cb_before_lpm_sleep 
-01e6 20407d79 call callback_func 
+01fb 6fe143e9 fetch 2 ,mem_cb_before_lpm_sleep 
+01fc 20407d79 call callback_func 
 
 p_lpm_sleep_skip_cb_function:
-01e7 6fe240ad fetch 4 ,mem_sleep_counter_all 
-01e8 9840fe00 iadd temp ,pdata 
-01e9 67e240ad store 4 ,mem_sleep_counter_all 
-01ea 204001f6 call p_lpm_save_context 
-01eb 6fe0c0cb fetch 1 ,mem_lpm_hv_sel 
-01ec 79207e04 set1 lpm_doze_en_bit ,pdata 
-01ed 204023e1 call lpm_write_sel_hv 
-01ee 2455a3cb ncall lpm_preon_counter ,wake 
-01ef 37d98200 until null ,lpo_edge 
-01f0 1b227e00 copy clkn ,pdata 
-01f1 67e340b1 store 6 ,mem_sleep_clkn 
-01f2 6fe1c0c6 fetch 3 ,mem_lpm_isogate 
-01f3 6a20c0c9 fetchr rega ,1 ,mem_lpm_ldo_sel 
-01f4 df200003 arg 3 ,loopcnt 
-01f5 2020242e branch lpm_sleep_loop 
+01fd 6fe240ad fetch 4 ,mem_sleep_counter_all 
+01fe 9840fe00 iadd temp ,pdata 
+01ff 67e240ad store 4 ,mem_sleep_counter_all 
+0200 2040020c call p_lpm_save_context 
+0201 6fe0c0cb fetch 1 ,mem_lpm_hv_sel 
+0202 79207e04 set1 lpm_doze_en_bit ,pdata 
+0203 204023e1 call lpm_write_sel_hv 
+0204 2455a3cb ncall lpm_preon_counter ,wake 
+0205 37d98200 until null ,lpo_edge 
+0206 1b227e00 copy clkn ,pdata 
+0207 67e340b1 store 6 ,mem_sleep_clkn 
+0208 6fe1c0c6 fetch 3 ,mem_lpm_isogate 
+0209 6a20c0c9 fetchr rega ,1 ,mem_lpm_ldo_sel 
+020a df200003 arg 3 ,loopcnt 
+020b 2020242e branch lpm_sleep_loop 
 
 p_lpm_save_context:
-01f6 600440e7 storer mark ,8 ,mem_saved_mark 
-01f7 d8c08070 arg core_gpio_conf ,contr 
-01f8 d8a040cc arg mem_saved_gpio ,contw 
-01f9 20407c8f call memcpy16 
-01fa d8c080d4 arg core_gpio_conf_hi ,contr 
-01fb 20407c89 call memcpy8 
-01fc 6ff08080 fetch 1 ,core_spid_ctrl 
-01fd 67e0c0ef store 1 ,mem_saved_spidctrl 
-01fe 18422400 copy temp ,regb 
+020c 600440e7 storer mark ,8 ,mem_saved_mark 
+020d d8c08070 arg core_gpio_conf ,contr 
+020e d8a040cc arg mem_saved_gpio ,contw 
+020f 20407c8f call memcpy16 
+0210 d8c080d4 arg core_gpio_conf_hi ,contr 
+0211 20407c89 call memcpy8 
+0212 6ff08080 fetch 1 ,core_spid_ctrl 
+0213 67e0c0ef store 1 ,mem_saved_spidctrl 
+0214 18422400 copy temp ,regb 
 
 p_lpm_write_gpio_wakeup:
-01ff df20000c arg 12 ,loopcnt 
-0200 da200016 arg mem_gpio_wakeup_cfg ,rega 
-0201 da60814d arg core_gpio_wakeup_cfg ,regc 
-0202 37d98200 until null ,lpo_edge 
+0215 df20000c arg 12 ,loopcnt 
+0216 da200016 arg mem_gpio_wakeup_cfg ,rega 
+0217 da60814d arg core_gpio_wakeup_cfg ,regc 
+0218 37d98200 until null ,lpo_edge 
 
 p_lpm_write_gpio_loop:
-0203 efe08011 ifetch 1 ,rega 
-0204 e8408013 ifetcht 1 ,regc 
-0205 98467c00 isub temp ,null 
-0206 20228209 branch p_lpm_write_gpio_loop_next ,zero 
-0207 e7e08013 istore 1 ,regc 
-0208 37d98200 until null ,lpo_edge 
+0219 efe08011 ifetch 1 ,rega 
+021a e8408013 ifetcht 1 ,regc 
+021b 98467c00 isub temp ,null 
+021c 2022821f branch p_lpm_write_gpio_loop_next ,zero 
+021d e7e08013 istore 1 ,regc 
+021e 37d98200 until null ,lpo_edge 
 
 p_lpm_write_gpio_loop_next:
-0209 1a20a201 increase 1 ,rega 
-020a 1a60a601 increase 1 ,regc 
-020b c2000203 loop p_lpm_write_gpio_loop 
-020c 1a420400 copy regb ,temp 
-020d 20600000 rtn 
+021f 1a20a201 increase 1 ,rega 
+0220 1a60a601 increase 1 ,regc 
+0221 c2000219 loop p_lpm_write_gpio_loop 
+0222 1a420400 copy regb ,temp 
+0223 20600000 rtn 
               org 0x2000
 
 start:
Index: output/ramcode.rom
===================================================================
--- /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/ramcode.rom	(revision 4690)
+++ /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/output/ramcode.rom	(working copy)
@@ -2,24 +2,24 @@
 c0000018
 c0010048
 c0088051
-c00a0191
+c00a01a7
 c00a80de
 c00c00ec
 c00c80ab
 c00d0063
-c01281e5
-c01381da
+c01281fb
+c01381f0
 c05880f6
 c06280f3
-c06d0162
-c06e0172
+c06d0178
+c06e0188
 2020235a
-c01201b3
+c01201c9
 c0128043
 c0130033
-c01c81ad
+c01c81c3
 c01f801c
-c02681b1
+c02681c7
 c17f8000
 2020235a
 2435a002
@@ -132,12 +132,12 @@
 58557474
 67f18968
 7089606e
-20400134
-2040015f
+2040014a
+20400175
 2040008c
 7041480c
 20406f4e
-20200161
+20200177
 20758000
 37d98200
 6fe0c11c
@@ -265,9 +265,11 @@
 67e44512
 6fe448a6
 67e444fa
-5800011f
+58000121
+67e143d5
+58000135
 67e143db
-58000122
+58000138
 67e143dd
 5800638a
 67e143df
@@ -275,21 +277,41 @@
 67e143e3
 58006365
 67e14524
-204062c2
+204062c4
 20406396
 6fe0c51a
-c000011c
+c000011e
 6fe0c51b
 67e0c4ec
 202063a1
 7044ecff
 70451c01
 20206340
+7044ecff
+20400125
+20406329
+2020739a
+6fe0c6ce
+207a0000
+6fe0c523
+1fe27200
+da204526
+efe08011
+6848c6cf
+98467c00
+20228130
+1fe20400
+20400133
+1a20a201
+c200012a
+20600000
+79200407
+20206edd
 dfe0000a
 204070c8
 20206327
 1a627e00
-c0188127
+c018813d
 c00ae2e6
 c01fe2e9
 202062da
@@ -318,7 +340,7 @@
 708ac200
 708ac300
 d8e00006
-20400151
+20400167
 2a2ffe0d
 2040211d
 2a4ffe0d
@@ -326,14 +348,14 @@
 d8e00005
 2040211c
 2040211e
-20400151
+20400167
 d8a08ac2
 1a31fe00
 20402117
 1a51fe00
 20402117
 18e08fff
-20210146
+2021015c
 2020214f
 2000003c
 58000f00
@@ -359,7 +381,7 @@
 6fe0c409
 67f080cd
 20000bb8
-2040018a
+204001a0
 708a08c1
 6a40c419
 df200008
@@ -368,7 +390,7 @@
 67e0c433
 6240c419
 20600000
-20400180
+20400196
 6ff08a09
 793ffe07
 67f08a09
@@ -379,7 +401,7 @@
 6fe0c409
 67f080cd
 20000bb8
-2040018a
+204001a0
 7080cd00
 20206fa1
 6ff080cc
@@ -394,7 +416,7 @@
 20600000
 7080cc03
 6ff08129
-c302818b
+c30281a1
 68590164
 6049440a
 7080cc00
@@ -403,7 +425,7 @@
 708a8d12
 708a8e0a
 6fe0c099
-c00801aa
+c00801c0
 58005762
 67f10907
 70890103
@@ -414,7 +436,7 @@
 708a8d44
 708a8e0a
 6fe0c099
-c00801a7
+c00801bd
 58002bb1
 67f10907
 c6978000
@@ -423,10 +445,10 @@
 20600000
 58004189
 67f10907
-202001a3
+202001b9
 58008312
 67f10907
-20200198
+202001ae
 6fe0c334
 c1000000
 c001b04a
@@ -434,7 +456,7 @@
 793f8030
 20202af6
 204025c2
-c59781b9
+c59781cf
 783cfc00
 2000001e
 204025c2
@@ -445,7 +467,7 @@
 78507c00
 19623600
 37c18400
-203701c2
+203701d8
 1b420400
 604b000f
 242c26fa
@@ -457,7 +479,7 @@
 984fb600
 20406877
 20372677
-204001d0
+204001e6
 6fe08168
 c301a677
 2055a477
@@ -488,7 +510,7 @@
 6fe240ad
 9840fe00
 67e240ad
-204001f6
+2040020c
 6fe0c0cb
 79207e04
 204023e1
@@ -516,11 +538,11 @@
 efe08011
 e8408013
 98467c00
-20228209
+2022821f
 e7e08013
 37d98200
 1a20a201
 1a60a601
-c2000203
+c2000219
 1a420400
 20600000
Index: program/patch.prog
===================================================================
--- /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/program/patch.prog	(revision 4690)
+++ /1121s/branch/shutter/branch/shutter/dq_project/dq_yc1386p_shutter_ws8000_dj/program/patch.prog	(working copy)
@@ -333,6 +333,9 @@
 	fetch 8,mem_shutter_reconn_or_discovery_blink_time_conf
 	store 8,mem_ble_shutter_reconn_blink_on_time
 
+	setarg p_shutter_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+
 	setarg p_shutter_process_idle
 	store 2,mem_cb_idle_process
 
@@ -348,7 +351,7 @@
 	setarg shutter_key_change
 	store 2,mem_cb_shutter_keycan
 
-	call shutter_common_init
+	call shutter_common_init+2
 	call shutter_load_buffer_config_form_DataRom
 
 p_shutter_power_switch:
@@ -363,6 +366,34 @@
 	jam SS_STATE_POWER_ON,mem_shutter_soft_switch_power_state
 	branch shutter_start_reconnect
 
+p_shutter_le_before_hibernate:
+	jam GPIO_DISABLE,mem_ui_button_gpio
+	call p_set_key_gpio_before_hiernate
+	call shutter_process_lpm_before
+	branch disable_authrom
+
+p_set_key_gpio_before_hiernate:
+	fetch 1,mem_shutter_hard_soft_switch_case_temp
+	rtn blank
+	fetch 1,mem_shutter_key_num
+	copy pdata,loopcnt
+	arg mem_shutter_key_conf0,rega
+p_set_key_gpio_loop:
+	ifetch 1,rega
+	fetcht 1,mem_shutter_soft_switch_button_gpio_temp
+	isub temp,null
+	branch p_set_key_gpio_loop_end,zero
+	copy pdata,temp
+	call p_shutter_gpio_config_input_pd
+p_set_key_gpio_loop_end:
+	increase 1,rega
+	loop p_set_key_gpio_loop
+	rtn
+
+p_shutter_gpio_config_input_pd:
+	set1 gpio_active_bit,temp
+	branch gpio_config_input
+
 p_shutter_process_idle:
 	arg 10, pdata //Լ96ms
 	call wdt_init_config
