📄 jtag.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 1987,(C) Copyright 1997 Texas Instruments.
// All rights reserved.
//=====================================================================
/* Filename : jtag.h
Description : jtag lib
Project : Perseus
Author : Didier Ounkowsky
=================================================================*/
#ifndef __JTAG_H
#define __JTAG_H
#include "gpio_reg32.h"
#include "clkrst.h"
#include "global_types.h"
#include "test.h"
#define MPUIO_PIN_FOR_TMS 14// for test
#define MPUIO_PIN_FOR_TDO 15
#define MPUIO_PIN_FOR_TDI 16
#define MPUIO_PIN_FOR_TRST 17
#define MPUIO_PIN_FOR_TCK 18
#define MPUIO_WHICH_MODULE MPUIO_MODULE_2
#define OMAP_BIST_LEN 82
#define PERSEUS_BIST_LEN 42
#define OMAP_BIST_IR 0x12
#define PERSEUS_BIST_IR 0x44
#define GOTO_IR_CMD 0x03 // it is 1,1,0,0
#define GOTO_IR_CMD_LEN 4
#define END_IR_CMD 0x03 // it is 1,1,0
#define END_IR_CMD_LEN 3
#define GOTO_DR_CMD 0x01 // it is 1,0,0
#define GOTO_DR_CMD_LEN 3
#define END_DR_CMD 0x03 // it is 1,1,0
#define END_DR_CMD_LEN 3
void set_mpuio_config(void); // set clock, direction register
void tck_to_one(void);
void tck_to_zero(void);
void tms_to_one(void);
void tms_to_zero(void);
void tdi_to_one(void);
void tdi_to_zero(void);
void trst_to_one(void);
void trst_to_zero(void);
UWORD8 read_tdo(void);
void exec_command(UWORD8 command, UWORD8 size); // to move in the jtag state machine
void exec_last(UWORD8 command, UWORD8 size, UWORD8 data);
void ir_write(UWORD8 bist_ir); // to write the good value in ir register
void dr_read_write(UWORD8 lenght); // to read and rewrite the dr register
//(we have to store the results in an array because
//it can be 82 bits long)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -