⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 charger.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 H
字号:
#ifndef _CHARGER__HH
#define _CHARGER__HH
#include "triton_mapping.h"
#include "global_types.h"
#include "tpu.h"

void precharge_off(void);
int MADC_RT_poll(int list);
int MADC_RT_INT2(int list);
int MADC_SP1_poll();
int MADC_SP1_INT2();
int I2V_calib(int CGAIN4, int added_offset);
void Disable_Comparator();
void Disable_Watchdog();
void CC_charge(int current_ref, int global_offset, int USB_AC);
void CV_charge(int voltage_ref, int USB_AC);
void Start_BB_charge(int threshold);
//void Start_BB_charge(void);
void Stop_BB_charge(void);
void Start_PWM(int duty_cycle);
void Stop_PWM();
BOOL Refresh_Watchdog(int timer);

int RealTime_Voltage(void);


/*------------------------------*/
/* Global Definition for Triton */
/*------------------------------*/
/***************   Timings   (defined in Qbits) ****************/
#define INIT_T1 	0x510	/* Time required before script 1 can start */ 
#define INIT_T2 	0x950	/* Time required before sleep instruction  */



// ADD HERE THE TPU SCENARIOS

const UWORD16 startADC[] =  
  {
   /* Set time base synchro value */
    TPU_SYNC(INIT_T1), 
    
    /* First operation : set of parallel writes */
    TPU_AT(40),                                
    TPU_MOVE(TSP_ACT_L, 0x00), 
    TPU_MOVE(TSP_ACT_U, 0x00),
    
    TPU_AT(50),    
    TPU_MOVE(TSP_ACT_L, 0x04),
    
    TPU_AT(55),
    TPU_MOVE(TSP_ACT_L, 0x00),    
    
    /* End of script : TPU sleep ordered */
    TPU_WAIT(10),
    TPU_SLEEP
  };
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -