Commit 935235d92804e62fbd000d2c2be6859af96dff43

Authored by luozhesi
Committed by Gitee
2 parents 0ec4ff69 afa830d9

!4 Close #I3YHN7

Merge pull request !4 from luozhesi/Issue_#I3YHN7
No preview for this file type
... ... @@ -72,7 +72,7 @@ int app_lc3_decoding_code_text_copy_init(void)
72 72 p_deocde_text = &malloc_buf[0x600];
73 73 text_len = 17*1024;//(__lc3_dec_text_ram_end - __lc3_dec_text_ram_start)*4;
74 74 CFasm_memcpy(p_deocde_text, __lc3_dec_text_rom_start,text_len);
75   -
  75 + app_main_data.iram_code_flag = SHARE_IRAM_UNKNOW_CODE;
76 76 //text_len >>= 2;
77 77 //text_len >>= 1;
78 78 //text_len >>= 4;
... ... @@ -84,7 +84,7 @@ int app_lc3_decoding_code_text_copy(void) __INTERNAL_RAM_TEXT;
84 84 int app_lc3_decoding_code_text_copy(void)
85 85 {
86 86 #if 1
87   - if (app_main_data.iram_code_flag != SHARE_IRAM_LC3_DECODE_CODE)
  87 + if (app_main_data.iram_code_flag != SHARE_IRAM_LC3_DECODE_CODE && app_main_data.iram_code_flag != SHARE_IRAM_BT_CONN_CODE)
88 88 {
89 89 CFasm_memcpy(__lc3_dec_text_ram_start, p_deocde_text,text_len);
90 90 app_main_data.iram_code_flag = SHARE_IRAM_LC3_DECODE_CODE;
... ...
... ... @@ -24,6 +24,7 @@ int app_lc3_encoding_code_text_copy_init(void)
24 24 text_len = 17*1024;//(__lc3_dec_text_ram_end - __lc3_dec_text_ram_start)*4;
25 25 CFasm_memcpy(encode_txet_buf, __lc3_enc_text_rom_start,text_len);
26 26
  27 + app_main_data.iram_code_flag = SHARE_IRAM_UNKNOW_CODE;
27 28 //text_len >>= 2;
28 29 //text_len >>= 4;
29 30 }
... ... @@ -45,7 +46,7 @@ int app_lc3_part_encoding_code_text_copy(void) __INTERNAL_RAM_TEXT;
45 46 int app_lc3_part_encoding_code_text_copy(void)
46 47 {
47 48 // int len;
48   - if (app_main_data.iram_code_flag != SHARE_IRAM_LC3_ENCODE_CODE)
  49 + if (app_main_data.iram_code_flag != SHARE_IRAM_LC3_ENCODE_CODE && app_main_data.iram_code_flag != SHARE_IRAM_BT_CONN_CODE)
49 50 {
50 51 // len = __lc3_dec_text_ram_end - __lc3_dec_text_ram_start;
51 52 CFasm_memcpy(__lc3_enc_text_ram_start, encode_txet_buf,text_len);
... ...
Please register or login to post a comment