• 大小: 88 KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-11-25
  • 语言: 其他
  • 标签: VPC3  

资源简介

VPC3_DPV1源代码,用于Profibus-DP协议

资源截图

代码片段和文件信息

/**********************  Filename: dp_debug.c  *******************************/
/* ========================================================================= */
/*                                                                           */
/* 0000  000   000  00000 0  000  0   0 0 0000                               */
/* 0   0 0  0 0   0 0     0 0   0 0   0 0 0   0                              */
/* 0   0 0  0 0   0 0     0 0     0   0 0 0   0      Einsteinstra遝 6        */
/* 0000  000  0   0 000   0 0     00000 0 0000       91074 Herzogenaurach    */
/* 0     00   0   0 0     0 0     0   0 0 0                                  */
/* 0     0 0  0   0 0     0 0   0 0   0 0 0          Tel: ++49-9132-744-200  */
/* 0     0  0  000  0     0  000  0   0 0 0    GmbH  Fax: ++49-9132-744-204  */
/*                                                                           */
/* ========================================================================= */
/*                                                                           */
/* Description: Print routines for serio.c.                                  */
/*                                                                           */
/* ------------------------------------------------------------------------- */
/*                                                                           */
/* Technical support:       P. Fredehorst                                    */
/*                          Tel. : ++49-9132/744-214                         */
/*                          Fax. :              -204                         */
/*                          eMail: pfredehorst@profichip.com                 */
/*                                                                           */
/*****************************************************************************/


/*****************************************************************************/
/* contents:

  - function prototypes
  - data structures
  - internal functions

*/
/*****************************************************************************/
/* include hierarchy */

#include “dp_inc.h“

/*---------------------------------------------------------------------------*/
/* function prototypes                                                       */
/*---------------------------------------------------------------------------*/
extern UBYTE user_demo_diagnostic( UBYTE diag_nr UBYTE module_nr );

/*---------------------------------------------------------------------------*/
/* function: wait                                                            */
/*---------------------------------------------------------------------------*/
void wait( void )
{
    do
    {
        // wait!
        // C501 Watchdog
        TOGGLE_WATCHDOG__();
        // toggle user watchdog
        VPC3_RESET_USER_WD();   // toggle user watchdog
    }
    while( snd_counter > 50);
}

/*--------------------------

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      41641  2001-06-08 14:02  Src\Cstart.asm

     文件      20015  2004-09-24 07:26  Src\dpl_list.h

     文件      20847  2004-09-24 11:18  Src\dp_cfg.h

     文件      14002  2004-09-24 09:46  Src\dp_debug.c

     文件       3221  2004-09-24 07:33  Src\dp_debug.h

     文件      49077  2004-09-24 07:34  Src\dp_fdl.c

     文件      61605  2004-09-24 07:44  Src\dp_if.c

     文件     101555  2004-09-24 07:37  Src\dp_if.h

     文件      15288  2004-09-24 07:38  Src\dp_inc.h

     文件      15558  2004-09-24 07:38  Src\dp_isr.c

     文件      12407  2004-09-24 11:20  Src\dp_main.c

     文件      50006  2004-09-24 09:44  Src\dp_msac1.c

     文件      80420  2004-09-24 07:42  Src\dp_msac2.c

     文件      63394  2004-09-27 09:33  Src\dp_user.c

     文件      11136  2004-09-24 07:30  Src\dp_user.h

     文件      13771  2004-09-24 07:25  Src\serio.c

     文件       4803  2004-09-24 07:25  Src\serio.h

     文件       4600  2001-02-15 14:25  Src\STARTUP.ASM

     目录          0  2004-09-24 11:07  Src

----------- ---------  ---------- -----  ----

               583346                    19


评论

共有 条评论