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

📄 user defined template.wiz

📁 UEStudioPortable.rar
💻 WIZ
字号:
##############################################################################
#                                                                            #
#             UEStudio's User Defined Project Template                       #
#                                                                            #
# The following template is to be modified by the user.  It describes        #
# individual preferences for new project creation.                           #
#                                                                            #
# The first and most important section is [UDT] which contains a "Compiler"  #
# variable and a list of seed files to be inserted in the newly created      #
# project.  The Compiler variable specifies the name of the compiler's       #
# configuration directory, and the compiler configuration file.              #
# For example:                                                               #
# Compiler = Microsoft Visual C++ Compiler\Win32 Console Application         #
#                                                                            #
# The list of project files may be any combination of source, header,        #
# resource, and data files.  An example follows:                             #
#  File0=MyApp.h                                                             #
#  File1=MyApp.c, Source Files                                               #
#  File2=MyApp.ico                                                           #
# and so forth....                                                           #
#                                                                            #
# All subsequent section(s) of this template describe the contents of one    #
# or more of the project files defined above.  An optional group name may    #
# be specified after the file name.  In the above example, the group         #
# "Source Files" will automatically be created and MyApp.c will be included  #
# in the group folder.                                                       #
#                                                                            #
# For binary file contents such as Resource, Icon, or any other data file,   #
# where it is inconvenient to describe the contents in a script, the         #
# following format may be used:                                              #
# [File2]                                                                    #
# INCLUDEBINARY=c:\my_data_files\ico_data.raw                                #
# This will create [File2], in this case "MyApp.ico", with the content       #
# ico_data.raw                                                               #
#                                                                            #
# Alternately, binary file contents may be defined in this template using    #
# the ":HEX" directive.  This specifies that all data is represented as      #
# hexadecimal values.  For example:                                          #
# [File3:HEX]                                                                #
# 0065 66 F0, 0FF0, 0F0F0F0F                                                 #
# 12, FF, 20; 0F 40                                                          #
#                                                                            #
# where all numbers above are interpreted based on data length, as follows:  #
#  1-2 = bytes, 3-4 = words, 5-8 = dwords, >8 = an array of bytes.           #
#                                                                            #
# Predefined variables may be used to specify the names of files as well as  #
# the content of the files, e.g.:                                            #
# USER (user name), COMPUTER (computer name), TIME, DATE, PRJPATH (project   #
# path), PRJNAME (project name), PRJDIR (project directory)                  #
# Example: File0=$(PRJNAME).cpp                                              #
#                                                                            #
##############################################################################

[UDT]

Compiler = Keil C51 Compiler\Application
File0 = $(PRJNAME).c

[File0]
#include <REG52.H>                /* special function register declarations   */
                                  /* for the intended 8051 derivative         */
#include <stdio.h>                /* prototype declarations for I/O functions */
#ifdef MONITOR51                         /* Debugging with Monitor-51 needs   */
char code reserve [3] _at_ 0x23;         /* space for serial interrupt if     */
#endif                                   /* Stop Exection with Serial Intr.   */
                                         /* is enabled                        */
void main (void) {
#ifndef MONITOR51
    SCON  = 0x50;               /* SCON: mode 1, 8-bit UART, enable rcvr      */
    TMOD |= 0x20;               /* TMOD: timer 1, mode 2, 8-bit reload        */
    TH1   = 221;                /* TH1:  reload value for 1200 baud @ 16MHz   */
    TR1   = 1;                  /* TR1:  timer 1 run                          */
    TI    = 1;                  /* TI:   set TI to send first char of UART    */
#endif
  while (1) {
    P1 ^= 0x01;                 /* Toggle P1.0 each time we print */
    printf ("Hello World\n");   /* Print "Hello World" */
  }
}

⌨️ 快捷键说明

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