📄 triton_functions.h
字号:
/**************************************************************************************
TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
Property of Texas Instruments
For Unrestricted Internal Use Only
Unauthorized reproduction and/or distribution is strictly prohibited.
This product is protected under copyright law and trade secret law
as an unpublished work.
Created 2000, (C) Copyright 2000 Texas Instruments. All rights reserved.
Filename : triton_functions.h
Description : contains definitions of functions used in TRiton tests
Project : Triton / Neptune
Author : L. Papadopoulos / D. Mendoza
FUNCTIONS PROVIDED :
=============================================================================*/
#ifndef __TRITON_FUNCTIONS_A9_H__
#define __TRITON_FUNCTIONS_A9_H__
#include "global_types.h"
#include "clkrst.h"
#include "ulpd13m.h"
#include "inth2.h"
#include "interrupt_mapping.h"
#include "rheabridge.h"
#include "reset.h"
#include "test.h"
#include "tpu.h"
#include "gpio.h"
#include "msi2c.h"
#include "mapping.h"
#include "triton_mapping.h"
#include "triton_inth.h"
#include "triton_audio.h"
#include "triton_pm.h"
#include "triton_reset_register.h"
#include "triton_rtc.h"
#include "triton_test_rtc.h"
/*------------------------------*/
/* 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 */
/*-----------------------------*/
/* Global Variables for Triton */
/*-----------------------------*/
/* Triton bit reading variable */
extern UWORD8 SETUP_DONE;
/* device address used for the I2c communication */
extern UWORD16 AbbDeviceAddress;
/* Abb Page selection */
extern UWORD8 Abb_page_in_use;
extern UWORD8 flag_receive_end ;
extern UWORD8 flag_transmit_end ;
/*---------------------*/
/* Function prototypes */
/*---------------------*/
void Tritonsys_Setup_Done_Write(UWORD8 value);
void Tritonsys_PWON_IT_Handle(void);
void Tritonsys_PWON_IT_P1_or_P2_Devoff(void);
void Tritonsys_RPWON_IT_P3_Devoff(void);
void Tritonsys_RPWON_IT_P1_Devoff(void);
void Tritonsys_Init(void);
int Tritonsys_Read_Status(void);
void Tritonsys_INT2_Clear(void);
void Tritonsys_Map_MMC_SIM(void);
void Tritonsys_Remap_Resources(void);
void Tritonsys_Regen_Sleep2off(void);
void SET_RTC_TC_alarm(struct rtc_tm *alarm_tm, struct rtc_tm *init_tm);
void Read_Slave_Resources_Reg();
void Triton_Audio_Restore_initial_Context(void);
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 Stop_BB_charge(void);
void Start_PWM(int duty_cycle);
void Stop_PWM();
BOOL Refresh_Watchdog(int timer);
UWORD16 reg_test(UWORD8 REG_LIST[],UWORD16 length_tab,char *REG_NAME);
UWORD16 Aux_reg_test(void);
UWORD16 Audio_reg_test(void);
UWORD16 Int_reg_test(void);
UWORD16 Pwr_reg_test(void);
void I2C_uart(void);
#endif /* __TRITON_FUNCTIONS_A9_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -