📄 main2.c
字号:
/*
* Copyright (c) 2004, Freescale Semiconductor
* Freescale Willy Note
*
* File name : main.c
* Project name: MSCAN12_DP256
*
* Author : Rebeca Delgado
* Department : RTAC Americas
*
* Description : a brief description of the module.
* Another line of the description.
*
* History :
* 21/07/2004 : Initial Development. (A10021)
*/
#include <hidef.h> /* for EnableInterrupts macro */
#include <mc9s12dp256.h> /* include peripheral declarations */
#pragma LINK_INFO DERIVATIVE "mc9s12dp256b"
#define ANY_MACRO
#define ANY_FUNCTION_LIKE_MACRO() (statements)
void MCUInit (void);
void ModuleInit (void); // I.e. ADCInit, KBIInit, TIMInit
unsigned char globalvariables;
void main(void) {
//localVariables = inhere;
MCUInit();
ModuleInit();
//MorecodeinHere;
EnableInterrupts;
for(;;)
; /* Empty Body */
}
/*
* ModuleISR: a description of the function functionName.
* Another line of the description.
*
* Parameters: None
*
* Return : None
*/
void interrupt 16 ModuleISR(void)
{
//variablesin = here;
//ISRcodeinhere;
}
/*
* ModuleInit: a description of the function functionName.
* Another line of the description.
*
* Parameters: None
*
* Return : None
*/
void ModuleInit (void)
{
//variablesin = here;
//Module Initialization Code related to the Willy Note;
}
/*
* functionName: a description of the function functionName.
* Another line of the description.
*
* Parameters: param1 - description
* param2 - description
*
* Return : description of the value returned by functionName
*/
void MCUInit (void)
{
CONFIG1 = 0x39; /*
* 0b00111001
* ||||||||__ This is
* |||||||___ block of
* ||||||____ comments
* |||||_____ used to
* ||||______ initialize
* |||_______ a register
* ||________ ....
* |_________ ....
*/
//Insert any other MCU initialization routines
//All line indentation using 4 spaces;
//Single space preceding and following assignments
//theexample = likethis++;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -