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

📄 l3_interface.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 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.                                                  
//=====================================================================  

#ifndef L3_INTERFACE_H
#define L3_INTERFACE_H


#include "mapping.h"
#include "gpio_a9.h"

//--------------------------
//   GPIO for L3 interface  
//--------------------------

#define L3MODE	10	
#define L3CLOCK	11	
#define L3DATA	12

#define DCR_FOR_L3_INTERFACE       0xE3FF	// Pin 10,11,12 as output
#define INIT_DOR_FOR_L3_INTERFACE  0x1C00	// Set pin 10,11,12

#define TIME_FOR_CLOCK	 1   // Tclk= (1+1)*30.5us
#define MASK_FOR_L3DATA	 0x01

#define L3MODE_DATA	 gpio_set_pin(L3MODE)		// data transfert mode
#define L3MODE_ADDRESS	 gpio_clear_pin(L3MODE)		// address mode

#define L3CLOCK_HIGH	 gpio_set_pin(L3CLOCK)
#define L3CLOCK_LOW	 gpio_clear_pin(L3CLOCK)

#define L3DATA_1	 gpio_set_pin(L3DATA)
#define L3DATA_0	 gpio_clear_pin(L3DATA)

//---------------------------------------------------------
//NAME        : Init_GPIO_for_L3_interface                 
//DESCRIPTION : GPIO config for L3 interface               
//PARAMETERS  : None                                       
//RETURN VALUE: None                                       
//LIMITATIONS : None                                       
//---------------------------------------------------------

void L3_InitGpio(void);

//--------------------------------------------------------------
//NAME        : Init_Timer32_for_L3_interface               
//DESCRIPTION : Initialize ARM Interrupt Handler for Timer 32kHz
//PARAMETERS  : None                                       
//RETURN VALUE: None                                       
//LIMITATIONS : None                                       
//--------------------------------------------------------------

void L3_InitTimer32(void);

//--------------------------------------------------------------
//NAME        : send_l3                                         
//DESCRIPTION :  Protocol for sending one byte with L3 interface
//PARAMETERS  : one byte to send                                
//RETURN VALUE: None                                            
//LIMITATIONS : None                                            
//--------------------------------------------------------------

void L3_SendByte(UWORD8 byte_to_send);

#endif

⌨️ 快捷键说明

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