void Rdabt_Pskey_Write_rf_r18(void) { uint32 data = 0x0004f39c; rdabt_wirte_memory(0x40240000, &data, 1, 0);// SPI2_CLK_EN PCLK_SPI2_EN RDABT_DELAY(2); rdabt_write_pskey(0x26, rdabt_pskey_rf_18, sizeof(rdabt_pskey_rf_18)); RDABT_DELAY(2); data = 0x0000f29c; rdabt_wirte_memory(0x40240000, &data, 1, 0);// Disable SPI2_CLK_EN PCLK_SPI2_EN }
void rdabt_uart_DC_write_r10_al(void) { unsigned char i=0; for(i =0;i<(sizeof(rdabt_uart_dccal_10_al)/sizeof(rdabt_uart_dccal_10_al[0])-1); i++) { rdabt_wirte_memory(rdabt_uart_dccal_10_al[i][0],&rdabt_uart_dccal_10_al[i][1],1,1); } RDABT_DELAY(40); rdabt_wirte_memory(rdabt_uart_dccal_10_al[i][0],&rdabt_uart_dccal_10_al[i][1],1,1); RDABT_DELAY(10); }
void Rdabt_Pskey_Write_r18(void) { int32 i; uint32 buadrate; for(i=0;i<sizeof(rda_pskey_18)/sizeof(rda_pskey_18[0]);i++) { rdabt_wirte_memory(rda_pskey_18[i][0],&rda_pskey_18[i][1],1,0); RDABT_DELAY(1); } // rdabt_write_pskey(0x35, rdabt_pskey_hostwake, sizeof(rdabt_pskey_hostwake)); // RDABT_DELAY(5); // rdabt_write_pskey(0x21, rdabt_pskey_sleep, sizeof(rdabt_pskey_sleep)); // RDABT_DELAY(5); rdabt_write_pskey(0x15, rdabt_pskey_sys_config, sizeof(rdabt_pskey_sleep)); RDABT_DELAY(5); rdabt_write_pskey(0x24, rdabt_pskey_rf_setting, sizeof(rdabt_pskey_rf_setting)); RDABT_DELAY(5); rdabt_write_pskey(0x17, rdabt_pskey_pcm_config, sizeof(rdabt_pskey_pcm_config)); RDABT_DELAY(5); buadrate = BT_UART_BAUDRATE; rdabt_write_pskey(0x30, &buadrate, sizeof(buadrate)); RDABT_DELAY(5); // rdabt_write_pskey(0x25, rdabt_pskey_rssi_config, sizeof(rdabt_pskey_rssi_config)); }
void Rdabt_acl_patch_write_r10(void) { #ifdef _RDA_PATCH_UART3_ rdabt_wirte_memory(rda_patch_acl[0],&rda_patch_acl[1],61,0); RDABT_DELAY(10); #endif }
void Rdabt_Pskey_Write_rf_r10_al(void) { kal_int32 i; for(i=0;i<sizeof(rdabt_pskey_rf_10_al)/sizeof(rdabt_pskey_rf_10_al[0]);i++) { rdabt_wirte_memory(rdabt_pskey_rf_10_al[i][0],&rdabt_pskey_rf_10_al[i][1],1,0); RDABT_DELAY(2); } }
void Rdabt_trap_write_r10(void) { kal_int32 i; for(i=0;i<sizeof(rda_trap_10)/sizeof(rda_trap_10[0]);i++) { rdabt_wirte_memory(rda_trap_10[i][0],&rda_trap_10[i][1],1,0); RDABT_DELAY(1); } }
void Rdabt_vco_test_Write_r578() { kal_uint8 i; for(i=0; i<sizeof(rdabt_vco_test_578)/sizeof(rdabt_vco_test_578[0]); i++) { rdabt_wirte_memory(rdabt_vco_test_578[i][0],&rdabt_vco_test_578[i][1],1,0); RDABT_DELAY(1); } }
void Rdabt_dut_trap_write_r11(void) { kal_uint8 i; for(i=0; i<sizeof(rdabt_dut_trap_11)/sizeof(rdabt_dut_trap_11[0]); i++) { rdabt_wirte_memory(rdabt_dut_trap_11[i][0],&rdabt_dut_trap_11[i][1],1,0); RDABT_DELAY(1); } }
void Rdabt_dut_pskey_write_r578(void) { kal_uint8 i; for(i=0; i<sizeof(rdabt_test_pskey_578)/sizeof(rdabt_test_pskey_578[0]); i++) { rdabt_wirte_memory(rdabt_test_pskey_578[i][0],&rdabt_test_pskey_578[i][1],1,0); RDABT_DELAY(1); } }
void rdabt_vco_test_write_r10(void) { kal_uint8 i; for(i=0; i<sizeof(rdabt_vco_test_10)/sizeof(rdabt_vco_test_10[0]); i++) { rdabt_wirte_memory(rdabt_vco_test_10[i][0],&rdabt_vco_test_10[i][1],1,0); RDABT_DELAY(1); } }
void RDABT_uart_rf_Intialization_r10_al(void) { unsigned char i=0; for(i =0;i<sizeof(rdabt_uart_rf_init_10_al)/sizeof(rdabt_uart_rf_init_10_al[0]); i++) { rdabt_wirte_memory(rdabt_uart_rf_init_10_al[i][0],&rdabt_uart_rf_init_10_al[i][1],1,1); RDABT_DELAY(1); } RDABT_DELAY(10); }
void Rdabt_lpo_Setting__write_r10_al(void) { kal_int32 i; for(i=0;i<sizeof(rda_lpo_setting_10_al)/sizeof(rda_lpo_setting_10_al[0]);i++) { rdabt_wirte_memory(rda_lpo_setting_10_al[i][0],&rda_lpo_setting_10_al[i][1],1,0); RDABT_DELAY(1); } }
void Rdabt_patch_write_r10(void) { #if defined(_RDA_PATCH_UART2_) || defined(_RDA_PATCH_UART3_) kal_int32 i; for(i=0;i<sizeof(rda_patch_10)/sizeof(rda_patch_10[0]);i++) { rdabt_wirte_memory(rda_patch_10[i][0],&rda_patch_10[i][1],61,0); RDABT_DELAY(10); } #endif }
void Rdabt_trap_write_r18(void) { // extern BOOL g_CalbClock; int32 i; #if 0 if(g_CalbClock) { hal_HstSendEvent(1, 0x88888888); for(i=0;i<sizeof(rda_trap_calib_18)/sizeof(rda_trap_calib_18[0]);i++) { rdabt_wirte_memory(rda_trap_calib_18[i][0],&rda_trap_calib_18[i][1],1,0x0); RDABT_DELAY(1); } } else #endif { for(i=0;i<sizeof(rda_trap_18)/sizeof(rda_trap_18[0]);i++) { rdabt_wirte_memory(rda_trap_18[i][0],&rda_trap_18[i][1],1,0); RDABT_DELAY(1); } #if 0 rdabt_adp_uart_stop(); rdabt_adp_uart_start(); rdabt_adp_uart_configure(115200,FALSE); rdabt_uart_register_cb(); rdabt_baudrate_ctrl(); RDABT_DELAY(100); for(i=0;i<sizeof(rda_trap_18_2)/sizeof(rda_trap_18_2[0]);i++) { rdabt_wirte_memory(rda_trap_18_2[i][0],&rda_trap_18_2[i][1],1,0); RDABT_DELAY(1); } #endif } }
void Rdabt_lpo_patch_write_r10_al(void) { rdabt_wirte_memory(rdabt_lpo_patch_10_al,sizeof(rdabt_lpo_patch_10_al),61,0); RDABT_DELAY(10); }