66 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| /****************************************************************************
 | |
| 
 | |
| Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
 | |
| 
 | |
| This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
 | |
| be copied by any method or incorporated into another program without
 | |
| the express written consent of Aerospace C.Power. This Information or any portion
 | |
| thereof remains the property of Aerospace C.Power. The Information contained herein
 | |
| is believed to be accurate and Aerospace C.Power assumes no responsibility or
 | |
| liability for its use in any way and conveys no license or title under
 | |
| any patent or copyright and makes no representation or warranty that this
 | |
| Information is free from patent or copyright infringement.
 | |
| 
 | |
| ****************************************************************************/
 | |
| 
 | |
| /* os shim includes */
 | |
| #include "iot_config.h"
 | |
| #include "os_types.h"
 | |
| #include "hw_reg_api.h"
 | |
| #include "iot_mem.h"
 | |
| 
 | |
| /* plc public api includes */
 | |
| #include "plc_fr.h"
 | |
| #include "plc_const.h"
 | |
| #include "iot_bitops.h"
 | |
| 
 | |
| /* driver includes */
 | |
| #include "iot_irq.h"
 | |
| #include "iot_gpio_api.h"
 | |
| #include "iot_board_api.h"
 | |
| #include "pin_rf.h"
 | |
| 
 | |
| #include "mpdu_header.h"
 | |
| #include "mac_sys_reg.h"
 | |
| #include "plc_protocol.h"
 | |
| #include "mac_raw_reg.h"
 | |
| #include "mac_rawdata_hw.h"
 | |
| #include "phy_reg.h"
 | |
| #include "phy_bb.h"
 | |
| #include "phy_isr.h"
 | |
| #include "ahb.h"
 | |
| #include "cpl_types_api.h"
 | |
| 
 | |
| #include "phy_isr_cpu1.h"
 | |
| #include "mac_sched_hw.h"
 | |
| 
 | |
| void phy_init_cpu1(void)
 | |
| {
 | |
| #if ENA_WAR_244
 | |
|     g_phy_cpu_share_ctxt.sof_src_tei = 0xFFFF;
 | |
|     g_phy_cpu_share_ctxt.sack_miss_cnt = 0;
 | |
|     g_phy_cpu_share_ctxt.sack_err_occur_cnt = 0;
 | |
|     g_phy_cpu_share_ctxt.need_record_tei = true;
 | |
| #endif
 | |
| #if DEBUG_NID_ERR
 | |
|     g_phy_cpu_share_ctxt.nid_err_cnt = 0;
 | |
|     g_phy_cpu_share_ctxt.cur_nid = 0;
 | |
|     g_phy_cpu_share_ctxt.config_nid = 0;
 | |
| #endif
 | |
| #if DEBUG_CANNOT_SENDOUT_PKT
 | |
|     g_phy_cpu_share_ctxt.isr_cnt0 = 0;
 | |
|     g_phy_cpu_share_ctxt.isr_cnt1 = 0;
 | |
| #endif
 | |
|     phy_isr_init_cpu1();
 | |
| }
 |