Commit afa830d91cbf6592c05bd54d5a1d441e17553fc5

Authored by luozhesi
1 parent 0ec4ff69

Close #I3YHN7

No preview for this file type
@@ -72,7 +72,7 @@ int app_lc3_decoding_code_text_copy_init(void) @@ -72,7 +72,7 @@ int app_lc3_decoding_code_text_copy_init(void)
72 p_deocde_text = &malloc_buf[0x600]; 72 p_deocde_text = &malloc_buf[0x600];
73 text_len = 17*1024;//(__lc3_dec_text_ram_end - __lc3_dec_text_ram_start)*4; 73 text_len = 17*1024;//(__lc3_dec_text_ram_end - __lc3_dec_text_ram_start)*4;
74 CFasm_memcpy(p_deocde_text, __lc3_dec_text_rom_start,text_len); 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 //text_len >>= 2; 76 //text_len >>= 2;
77 //text_len >>= 1; 77 //text_len >>= 1;
78 //text_len >>= 4; 78 //text_len >>= 4;
@@ -84,7 +84,7 @@ int app_lc3_decoding_code_text_copy(void) __INTERNAL_RAM_TEXT; @@ -84,7 +84,7 @@ int app_lc3_decoding_code_text_copy(void) __INTERNAL_RAM_TEXT;
84 int app_lc3_decoding_code_text_copy(void) 84 int app_lc3_decoding_code_text_copy(void)
85 { 85 {
86 #if 1 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 CFasm_memcpy(__lc3_dec_text_ram_start, p_deocde_text,text_len); 89 CFasm_memcpy(__lc3_dec_text_ram_start, p_deocde_text,text_len);
90 app_main_data.iram_code_flag = SHARE_IRAM_LC3_DECODE_CODE; 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,6 +24,7 @@ int app_lc3_encoding_code_text_copy_init(void)
24 text_len = 17*1024;//(__lc3_dec_text_ram_end - __lc3_dec_text_ram_start)*4; 24 text_len = 17*1024;//(__lc3_dec_text_ram_end - __lc3_dec_text_ram_start)*4;
25 CFasm_memcpy(encode_txet_buf, __lc3_enc_text_rom_start,text_len); 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 //text_len >>= 2; 28 //text_len >>= 2;
28 //text_len >>= 4; 29 //text_len >>= 4;
29 } 30 }
@@ -45,7 +46,7 @@ int app_lc3_part_encoding_code_text_copy(void) __INTERNAL_RAM_TEXT; @@ -45,7 +46,7 @@ int app_lc3_part_encoding_code_text_copy(void) __INTERNAL_RAM_TEXT;
45 int app_lc3_part_encoding_code_text_copy(void) 46 int app_lc3_part_encoding_code_text_copy(void)
46 { 47 {
47 // int len; 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 // len = __lc3_dec_text_ram_end - __lc3_dec_text_ram_start; 51 // len = __lc3_dec_text_ram_end - __lc3_dec_text_ram_start;
51 CFasm_memcpy(__lc3_enc_text_ram_start, encode_txet_buf,text_len); 52 CFasm_memcpy(__lc3_enc_text_ram_start, encode_txet_buf,text_len);
Please register or login to post a comment