亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? debug.c

?? Infineon公司有一款實現SHDSL協議(ADSL協議的變種)的芯片
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*******************************************************************************
       Copyright (c) 2000, Infineon Technologies.  All rights reserved.
  
                               No Warranty                                                 
   Because the program is licensed free of charge, there is no warranty for 
   the program, to the extent permitted by applicable law.  Except when     
   otherwise stated in writing the copyright holders and/or other parties   
   provide the program "as is" without warranty of any kind, either         
   expressed or implied, including, but not limited to, the implied         
   warranties of merchantability and fitness for a particular purpose. The  
   entire risk as to the quality and performance of the program is with     
   you.  should the program prove defective, you assume the cost of all     
   necessary servicing, repair or correction.                               
                                                                            
   In no event unless required by applicable law or agreed to in writing    
   will any copyright holder, or any other party who may modify and/or      
   redistribute the program as permitted above, be liable to you for        
   damages, including any general, special, incidental or consequential     
   damages arising out of the use or inability to use the program           
   (including but not limited to loss of data or data being rendered        
   inaccurate or losses sustained by you or third parties or a failure of   
   the program to operate with any other programs), even if such holder or  
   other party has been advised of the possibility of such damages. 
 *******************************************************************************       
   
   Module:        DEBUG
   Product ID:    22622.1.0.1
   Description:   Contains general debug proceedings. 

 ******************************************************************************/

//   Group=DEBUG 


/* ============================= */
/* Includes                      */
/* ============================= */

#include <stdio.h>
#include <intrins.h>
#include <absacc.h>
#include <stdarg.h>

#include "sysdef.h"
#include "dds.h"
#include "sysvar.h"
#include "sysfunc.h"

#include "modid.h"
#include "reg165.h"

/* ============================= */
/* Local Macros & Definitions    */
/* ============================= */

                                       /* Message IDs                        */
#define MSG_ID_DEBUG_V24            0
#define MSG_ID_DEBUG_READ_BYTE      1
#define MSG_ID_DEBUG_READ_WORD      2
#define MSG_ID_DEBUG_WRITE_BYTE     3
#define MSG_ID_DEBUG_WRITE_WORD     4
#define MSG_ID_DEBUG_WRITE_SYNC     5
#define MSG_ID_DEBUG_READ_SYNC      6
#define MSG_ID_DEBUG_READ_REGISTER  7
#define MSG_ID_DEBUG_WRITE_REGISTER 8
#define MSG_ID_DEBUG_WRITE_REGISTER_TIME 9

                                       /* Chip select register          
                                          and values.                         */
#define CHIP_SELECT_REG  XVAR (WORD8, 0x310000)

#ifdef  SLOT1
    #define CS_1             0xFD
    #define CS_2             0xFB
    #define CS_12            0xF9
#endif
#ifdef  SLOT2
    #define CS_1             0xDF
    #define CS_2             0xBF
    #define CS_12            0x9F
#endif

                                       /*  first part of error message        */
static const WORD8 Error_Text_Start[]  = "Invalid";

                                       /*  end of error message               */
static const WORD8 Error_Text_End[]    = "parameter specified";

                                       /*  Address modification mode.         */
static WORD8 Address_Mod;

/* ============================= */
/* Global variables definition   */
/* ============================= */

WORD8  G_V24;
WORD8  G_Ssc_Adr;
T_REGISTER_TIMER  G_Register_Timer;

/* ============================= */
/* Local function declaration    */
/* ============================= */

#ifdef DEMUX
    static WORD16 Demux(WORD16 address);
#endif
static void Debug_V24 (P_DDS_MSG pMsg);
static void Debug_Read_Byte (P_DDS_MSG pMsg);
static void Debug_Write_Byte (P_DDS_MSG pMsg);
static void Debug_Read_Register (P_DDS_MSG pMsg);
static void Debug_Write_Register (P_DDS_MSG pMsg);
static void Debug_Msg_Entry (P_DDS_MSG pMsg);
static void Ssc_Write_Buffer (WORD8 val);
static WORD8 Ssc_Read_Buffer (void);
     
/* ============================= */
/* Global function definition    */
/* ============================= */

/*******************************************************************************
Description:
   Inititialization function of the debug module.
Arguments:
   NONE.
Return:
   NONE.   
Remarks:
   This function calls the message entry function of this module.
 ******************************************************************************/
void Debug_Module_Init (void)
{
   printf ("\nModule DEBUG.C\t: Initialization done");

   DdsSetMsgEntry (Debug_Msg_Entry, MOD_ID_DEBUG_MODULE);
}

/*******************************************************************************
Description:
   Write data via synchronous serial interface.
Arguments:
   cs          -  Chip select value.
   nr          -  Number of bytes to be transmitted.
   data_array  -  Pointer to data array for rec. values.
Return:
   NONE.
Remarks:
   NONE.
*******************************************************************************/
void Ssc_Write (WORD8 cs, WORD8 nr, WORD8 *data_array)
{
   WORD8   i;
   volatile WORD8 dummy;

                                      /* Set chip select.                  */
   switch (cs)
   {
   case 0x01:
      CHIP_SELECT_REG = CS_1;
      break;
   case 0x02:
      CHIP_SELECT_REG = CS_2;
      break;
   case 0x03:
   case 0x04:
   case 0x05:
   case 0x06:
   default:
      CHIP_SELECT_REG = CS_12;
      break;
   }

   TRACE (("\nTRACE:SSC_Write CS%d:", cs));
   for (i = 0;i < nr; i++)
   {
      TRACE (("0x%02X,", data_array[i]));
   }
                                      /* Write data to transmit        
                                         buffer.                           */
   for (i = 0;i < nr; i++)
   {
      Ssc_Write_Buffer (data_array[i]);
      dummy = Ssc_Read_Buffer();
   }
                                      /* Chip Select disable               */
   CHIP_SELECT_REG = 0xFF;
}

/*******************************************************************************
Description:
   Read data via synchronous serial interface.
Arguments:
   cs          - Chip select value.
   nr_rc       - Number of bytes to be received.
   nr_tr       - Number of bytes to be transmitted.
   *data_array - Pointer to data array for rec. values.
Return:
   NONE.
Remarks:
   NONE.
*******************************************************************************/
void Ssc_Read (WORD8 cs, WORD8 nr_rc, WORD8 nr_tr, WORD8 *data_array)
{
   WORD8   i;
   volatile WORD8 dummy;

                                      /* Set chip select.                  */
   switch (cs)
   {
   case 0x01:
      CHIP_SELECT_REG = CS_1;
      break;
   case 0x02:
      CHIP_SELECT_REG = CS_2;
      break;
   case 0x03:
   case 0x04:
   case 0x05:
   case 0x06:
   default:
      CHIP_SELECT_REG = CS_12;
      break;
   }
   TRACE (("\nTRACE:SSC_Read CS%d, TX:", cs));
   for (i = 0;i < nr_tr; i++)
   {
      TRACE (("0x%02X,", data_array[i]));
   }

                                     /* Write data to transmit        
                                        buffer.                            */
   for (i = 0;i < nr_tr; i++)
   {
      Ssc_Write_Buffer (data_array[i]);
      dummy = Ssc_Read_Buffer();
   }
   for (i = 0;i < nr_rc; i++)
   {
                                      /* Write 0xFF in transmit        
                                         buffer.                           */
      Ssc_Write_Buffer (0xFF);
      data_array[i] = Ssc_Read_Buffer();
   }

   TRACE ((" RX:"));
   for (i = 0;i < nr_rc; i++)
   {
      TRACE (("0x%02X,", data_array[i]));
   }

                                      /* Chip Select disable               */
   CHIP_SELECT_REG = 0xFF;
}

/*******************************************************************************
Description:
   Read a register content from a specified address.
Arguments:
   adr   -  Address of the register. This address has to be specified without 
            the AOM base offset. It is added within this function. 
Return:
   WORD8 -  The register content.
Remarks:
   Mux/Demux mode is considered by the function automatically.
 ******************************************************************************/
WORD8 In(WORD16 adr)
{
   WORD8  data;

#ifdef DEMUX
   adr = Demux ( adr );
#endif

   data = HVAR(WORD8, AOM_BASE + adr);
   if (adr != SOCRATES_TSTAT)
   {
       TRACE (("\nTRACE:Read Adr 0x%04X", (AOM_BASE>>16)));
       TRACE (("%04X, data: 0x%02X", adr, data));
   }
   return data;
}

/*******************************************************************************
Description:
   Write to a register specified by address.
Arguments:
   adr   - Address of the register. This address has to be specified without the 
           AOM base offset. It is added within this function. 
   data  - The new value for the register, that will be written.
Return:
   NONE.
Remarks:
   Mux/Demux mode is considered by the function automatically.
 ******************************************************************************/
void Out(WORD16 adr, WORD8 data)
{
#ifdef DEMUX
   adr = Demux ( adr );
#endif

   HVAR (WORD8, AOM_BASE + adr) = data;
    TRACE (("\nTRACE:Write Adr 0x%04X", (AOM_BASE>>16)));
    TRACE (("%04X, data: 0x%02X", adr, data));
}

/* ============================= */
/* Local function definition     */
/* ============================= */

#ifdef DEMUX
/*******************************************************************************
Description:
   Serves register access in demux mode.
Arguments:
   adr   - Address of the register. This address has to be specified without the 
           AOM base offset. It is added within this function. 
Return:
   NONE.
Remarks:
   NONE.
 ******************************************************************************/
static WORD16 Demux ( WORD16 address )
{
                                       /* DEMUX mode FALC                     */
   if (( address >= FALC_BASE ) && ( address < EPIC_BASE ))
   {
      
   }
                                       /* DEMUX mode EPIC                     */
   if (( address >= EPIC_BASE ) && ( address < REGBLOCK_BASE ))
   {
      #ifdef EPIC_ADDR_BUGFIX

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产免费一区二区三区香蕉| 亚洲国产欧美日韩另类综合| 亚洲欧美另类小说| 五月综合激情日本mⅴ| 国产麻豆精品久久一二三| 欧美综合在线视频| 国产欧美精品区一区二区三区 | 成人福利在线看| 91精品国产色综合久久| 亚洲日本va午夜在线影院| 久久66热re国产| 欧美二区在线观看| 亚洲午夜精品一区二区三区他趣| 国产suv精品一区二区三区| 欧美一区二区三区啪啪| 亚洲在线中文字幕| 99久久综合国产精品| 国产亚洲va综合人人澡精品| 另类调教123区| 欧美一级生活片| 日本在线不卡一区| 欧美精品在线观看一区二区| 亚洲精品成人在线| 不卡视频一二三四| 国产精品每日更新| 国产91综合一区在线观看| 日韩免费看的电影| 日本不卡在线视频| 日韩精品中文字幕一区二区三区| 五月婷婷综合网| 欧美日本一区二区三区| 亚洲图片一区二区| 欧美日本韩国一区二区三区视频 | 国产日韩欧美制服另类| 激情另类小说区图片区视频区| 欧美日韩三级视频| 婷婷综合在线观看| 91精品视频网| 精品一区二区三区免费视频| 日韩一级成人av| 国产一区福利在线| 国产日本一区二区| 99re热这里只有精品免费视频| 亚洲欧美日韩在线| 欧美网站大全在线观看| 日本中文字幕一区二区视频| 欧美xxxxx牲另类人与| 国产乱理伦片在线观看夜一区| 久久婷婷久久一区二区三区| 高清不卡一二三区| 一区二区在线免费| 91精品国模一区二区三区| 精品一区二区三区蜜桃| 国产精品电影一区二区三区| 欧美午夜不卡在线观看免费| 精品一区免费av| 亚洲人成亚洲人成在线观看图片| 在线亚洲+欧美+日本专区| 蜜臀国产一区二区三区在线播放 | 9191久久久久久久久久久| 麻豆专区一区二区三区四区五区| 久久婷婷国产综合精品青草| 94色蜜桃网一区二区三区| 亚洲成人自拍一区| 中文字幕高清不卡| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 五月综合激情网| 久久久三级国产网站| 色哟哟亚洲精品| 国内欧美视频一区二区 | 久久久国产综合精品女国产盗摄| 成人免费福利片| 亚瑟在线精品视频| 国产欧美一区在线| 91麻豆精品91久久久久同性| 97精品久久久午夜一区二区三区| 国产久卡久卡久卡久卡视频精品| 亚洲色图制服诱惑| 亚洲精品在线三区| 91精品一区二区三区久久久久久| 不卡的电影网站| 久久精品国产精品亚洲综合| 亚洲乱码日产精品bd| 久久精品男人天堂av| 欧美一级二级在线观看| 91官网在线观看| 成人激情文学综合网| 美日韩黄色大片| 香蕉久久一区二区不卡无毒影院| 欧美国产97人人爽人人喊| 精品国产91乱码一区二区三区| 欧美色网一区二区| av在线不卡观看免费观看| 国产精品一线二线三线精华| 琪琪久久久久日韩精品| 亚洲国产精品一区二区久久恐怖片 | 欧美一区午夜视频在线观看| 在线看不卡av| www.色精品| 国产91丝袜在线18| 国内精品第一页| 全部av―极品视觉盛宴亚洲| 亚洲aⅴ怡春院| 亚洲主播在线播放| 亚洲精品欧美二区三区中文字幕| 中文字幕精品一区二区精品绿巨人| 欧美xxxxxxxx| 精品国产伦一区二区三区观看方式 | 在线播放日韩导航| 一本高清dvd不卡在线观看| 成人丝袜18视频在线观看| 国产乱人伦偷精品视频不卡| 国产精品一区二区久激情瑜伽| 蜜桃av噜噜一区| 久久精品国产一区二区三区免费看| 日韩高清不卡一区二区三区| 丝瓜av网站精品一区二区 | 精品一区二区三区视频在线观看| 日韩不卡一二三区| 蜜桃视频第一区免费观看| 天天操天天色综合| 蜜桃av一区二区| 国内精品伊人久久久久av影院 | 五月激情综合色| 日韩精品一级二级| 九九精品一区二区| 国产露脸91国语对白| 成人免费毛片嘿嘿连载视频| 丰满亚洲少妇av| 色偷偷久久人人79超碰人人澡| 色悠悠亚洲一区二区| 欧美日韩大陆在线| 欧美成人女星排行榜| 久久先锋资源网| 亚洲精品视频自拍| 午夜精品久久久久久| 久久精品久久99精品久久| 国产91精品一区二区麻豆亚洲| 99麻豆久久久国产精品免费 | eeuss影院一区二区三区| 91欧美一区二区| 国产精品色眯眯| 艳妇臀荡乳欲伦亚洲一区| 日韩av电影免费观看高清完整版 | 91美女在线视频| 欧美日韩一级视频| 久久综合色综合88| 国产精品久久久久精k8| 亚洲成年人影院| 国产精品99久久久| 欧美性高清videossexo| 久久久亚洲国产美女国产盗摄 | 久久精品国产一区二区| 99视频精品免费视频| 91精品国产麻豆国产自产在线| 国产亚洲精品7777| 亚洲成人久久影院| 韩国成人精品a∨在线观看| 色屁屁一区二区| 久久精品欧美日韩| 天天色 色综合| bt7086福利一区国产| 日韩一区二区三区在线视频| 1024成人网| 久久国产精品一区二区| 欧美亚洲国产bt| 欧美国产精品劲爆| 久久99日本精品| 欧美人xxxx| 中文字幕一区二区三区色视频| 久久精品久久99精品久久| 欧美亚洲一区三区| 国产精品狼人久久影院观看方式| 喷水一区二区三区| 欧美日韩一级片网站| 亚洲精品国产a久久久久久| 国产成人精品免费看| 亚洲精品在线观| 日本午夜一区二区| 欧美日韩视频不卡| 亚洲欧美二区三区| 91小视频在线免费看| 国产视频一区二区三区在线观看 | 精品久久久久久久久久久久久久久久久| 亚洲你懂的在线视频| fc2成人免费人成在线观看播放| 久久久国产精品不卡| 久久99国产乱子伦精品免费| 欧美一三区三区四区免费在线看| 亚洲综合色自拍一区| 91美女片黄在线观看| 亚洲日本在线a| 97久久久精品综合88久久| 中文字幕乱码日本亚洲一区二区| 精品在线播放午夜| 久久综合九色综合欧美就去吻| 老司机免费视频一区二区三区| 日韩一区二区免费视频| 奇米精品一区二区三区四区| 日韩三级视频中文字幕|