📄 ac48drus.c
字号:
/*---------------------------------------------------------*/
/* */
/* Host Vision 1.10 */
/* Copyright (c) 1998 by AudioCodes Ltd */
/* */
/* AMD Codec Initialization Source File */
/*---------------------------------------------------------*/
/************************************************************************/
/* * AudioCodes Ltd. * Copyright (c) 1998 * */
/************************************************************************/
/* File Name: Ac48DrUs.c */
/************************************************************************/
/* PURPOSE : This source file contains the definitions of user */
/* functions to generate a reset signal into an */
/* appropriate pin, for the booting process: */
/* AC48xxResetAssert */
/* AC48xxResetRelease */
/* */
/* Host Vision 1.20 */
/* DATE : October 1998 */
/* UPDATES : */
/* */
/* COMMENTS : 1) The user have to locate this defination file */
/* into the application directory. */
/* 2) belong to Host Vision 1.10 */
/************************************************************************/
//unsigned int FirstAc48xxHPIAddress=0; /* for use in HWDrv.h */
extern unsigned short SupAdd; /* defined in the host application */
extern char AdapterControl; /* defined in the host application */
extern int IdForResetFunctions[];
extern void ResetAC4804(int AC4804Index, int ResetOnOff);
// Dummy definitions
//void IO_WriteByte(unsigned long dwIOAddr, unsigned char bData){}
//unsigned char IO_ReadByte(unsigned long dwIOAddr){return 1;}
/*======================================================================*/
/* Name : Ac48xxResetAssert */
/*======================================================================*/
/* Purpose : Reset device for begine a Booting proccess. */
/* This function performs: Reset = 0 and enables the */
/* download of the kernel into the AC48 */
/* */
/* Input : An integer, performing the device index. */
/*======================================================================*/
void Ac48xxResetAssert(int DeviceIndex)
{
ResetAC4804(DeviceIndex, 1);
}
/*======================================================================*/
/* Name : Ac48xxResetRelease */
/*======================================================================*/
/* Purpose : Freeing the device from Reset after a Booting proccess */
/* is completed. */
/* This function performs: Reset = 1 and enables the */
/* download of the rest of the executive program */
/* (after the kernel has been downloaded) into the AC48. */
/* */
/* Input : An integer, performing the device index. */
/*======================================================================*/
void Ac48xxResetRelease(int DeviceIndex)
{
ResetAC4804(DeviceIndex, 0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -