|
@ -44,7 +44,7 @@ void L3_reg_2_iap(void) |
|
|
L0_uart0_sendstr("e2p write success"); |
|
|
L0_uart0_sendstr("e2p write success"); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
if(L1_eep_write_block(D_EEP_PARAM_IN_SECTOR, D_EEP_PARAM_IN_BLOCK, D_EEP_PARAM_BLOCK_SIZE, (U8*)&R.p,sizeof(R.p),TRUE) == 0) |
|
|
if(L1_eep_write_block(D_EEP_PARAM_IN_SECTOR, D_EEP_PARAM_IN_BLOCK, D_EEP_SECTOR_BLOCK_SIZE, (U8*)&R.p,sizeof(R.p),TRUE) == 0) |
|
|
{ |
|
|
{ |
|
|
L0_uart0_sendstr("e2p write success"); |
|
|
L0_uart0_sendstr("e2p write success"); |
|
|
return; |
|
|
return; |
|
@ -73,7 +73,7 @@ void L3_iap_2_reg(void) |
|
|
R.p.adc_blur_threshold[0] = iapData.adc_blur_threshold[0]; |
|
|
R.p.adc_blur_threshold[0] = iapData.adc_blur_threshold[0]; |
|
|
R.p.adc_blur_threshold[1] = iapData.adc_blur_threshold[1]; |
|
|
R.p.adc_blur_threshold[1] = iapData.adc_blur_threshold[1]; |
|
|
#endif |
|
|
#endif |
|
|
if(L1_eep_read_block(D_EEP_PARAM_IN_SECTOR, D_EEP_PARAM_IN_BLOCK, D_EEP_PARAM_BLOCK_SIZE, (U8*)&R.p, NULL) == 0) |
|
|
if(L1_eep_read_block(D_EEP_PARAM_IN_SECTOR, D_EEP_PARAM_IN_BLOCK, D_EEP_SECTOR_BLOCK_SIZE, (U8*)&R.p, NULL) == 0) |
|
|
{ |
|
|
{ |
|
|
L0_uart0_sendstr("e2p read success"); |
|
|
L0_uart0_sendstr("e2p read success"); |
|
|
return; |
|
|
return; |
|
|