📄 rvdebug.tpl
字号:
# This is a template file for mwedit for insert of template items.
# Each template starts with a name in quotes and the word TEMPLATE. After
# that, it may have a set of flags (shown below) and optionally a filename.
# If a filename is given, that is used as the template text. If no file
# is named, the next lines are used up until a line with the same quoted name
# followed by the word END. For example:
#
# "TemplName" TEMPLATE -above /mypath/myfile
#
# "Simple For Loop" TEMPLATE -below -indent
# for (index = 0; index < top; index++)
# {
# }
# "Simple For Loop" END
# or:
# "Program Header" TEMPLATE -sel -auto="header" ~/header.comment
#
# The allowed flags are: -above and -below indicate to place on the line before
# or after the insert cursor, else at the insert cursor. -indent indictaes the
# lines should be shifted to match the line before. -selection indicates that
# $selection, $paste, $filename, $FILENAME, $directory, should be replaced in
# the template body
# $selection The current selection
# $paste, The current paste buffer
# $filename, The current filename, minus the path, in lower case
# $FILENAME, The current filename, minus the path, in upper case
# $directory The path without the filename
#
# -auto=<phrase> is the auto insertion phrase.
# When a template has an auto insertion phrase you may do one of three things
# after typing in the phrase:
# SHIFT-F3 - insert the template at the input cusor
# F3 - See the definition of the phrase
# CONTROL-F3 - Get the template insert dialog
# The body of the insert can have a ^L (Ascii 12) after a commentary part. The
# lines preceding the ^L will NOT be inserted. This is used for data definitions
# One can include template files in a template file using:
#
# "filename" INCLUDE
#
"Program Header" TEMPLATE -sel
/*
; ============================================================================
; $FILENAME - .
;
; Library Name:
;
; Module Name: $FILENAME
; Module Descr:
; Creation Date:2001
; Author: Your Name
;
; THIS INFORMATION IS PROPRIETARY TO
; YOUR COMPANY, INC.
; 123 Main Street
; Hometown, STATE 12345
; USA
; ----------------------------------------------------------------------
; Copyright (c) 2001 Your Company, Inc.
; ALL RIGHTS RESERVED
;
;
; Revisions of $FILENAME: (latest revision on top)
; #.# Name Date Description
; --- ----- -------- -----------------------------------------------------
;
; Implementation notes:
;
; GENERAL
; -------
;
; -----------------------------------------------------------------------------
; Description:
; ----------------------------------------------------------------------------
; NOTICE
;
; This code is proprietary and secret; the use of this source is
; restricted, and all rights are reserved.
;
; If reading for interest, enjoy.
;
; If maintaining, read comments carefully! There are some inter-depen-
; dencies and connectivities. Areas with particular connection are marked.
; There are some variable protocols that are not self evident: check all uses
; of variables before making big changes.
; ============================================================================
;
#
*/
"Program Header" END
"Function Header" TEMPLATE -sel -above
/* -----------------------------------------------------------------------
$selection -
Notes:
-
----------------------------------------------------------------------- */
"Function Header" END
"For Loop" TEMPLATE -below -indent
for( ; ;)
{
}
"For Loop" END
"Include Block" TEMPLATE -above
/************************************************************************/
/* INCLUDE HEADER FILES */
/************************************************************************/
"Include Block" END
"Static Function Decl" TEMPLATE -above
/************************************************************************/
/* FOREWARD DECLARE STATIC AND PACKAGE LOCAL FUNCTIONS */
/************************************************************************/
"Static Function Decl" END
"Private Data" TEMPLATE -above
/************************************************************************/
/* DEFINE PRIVATE STRUCTURES AND VARIABLES */
/************************************************************************/
"Private Data" END
"Global Function Start" TEMPLATE -above
/************************************************************************/
/* THE GLOBAL FUNCTIONS (EXPORTED PUBLICLY) */
/************************************************************************/
"Global Function Start" END
"Static Function Start" TEMPLATE -above
/************************************************************************/
/* STATIC FUNCTIONS */
/************************************************************************/
"Static Function Start" END
"WriteDevice Function" TEMPLATE -auto=WriteDevice
EXAMPLE
/* write a message string to the LCD */
if (!WriteDevice(main_lcd, sizeof(init_msg), init_msg))
ReportFailure(DEV_ERR, class_lcd, main_lcd);
Status WriteDevice(int dev_no, int len, uint8 *buffer);
"WriteDevice Function" END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -