freescale

来自「Freescale 系列单片机常用模块与综合系统设计」· 代码 · 共 61 行

TXT
61
字号
/** ###################################################################
**     Filename  : Buzzer_Ctrl.C
**     Project   : Buzzer_Ctrl
**     Processor : MC9S08JM60CLHE
**     Version   : Driver 01.11
**     Compiler  : CodeWarrior HCS08 C Compiler
**     Date/Time : 2010-1-10, 19:55
**     Abstract  :
**         Main module.
**         This module contains user's application code.
**     Settings  :
**     Contents  :
**         No public methods
**
** ###################################################################*/
/* MODULE Buzzer_Ctrl */


/* Including needed modules to compile this module/procedure */
#include "Cpu.h"
#include "Events.h"
#include "buzzer_ctrol.h"
#include "timer_125us.h"
/* Include shared modules, which are used for whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"

#include "variables.h"
#include "buzzer.h"

/* User includes (#include below this line is not maintained by Processor Expert) */

void main(void)
{
  /* Write your local variable definition here */
   unsigned char n;
  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
  PE_low_level_init();
  /*** End of Processor Expert internal initialization.                    ***/
    beep_delay = beep_table[0];
    beep_cnt = 0;
    n = beep_cnt;
    time_f1.bit2 = 1;

  for(;;) {
    Beep_Ctrl(n);
   } 
}

/* END Buzzer_Ctrl */
/*
** ###################################################################
**
**     This file was created by Processor Expert 3.07 [04.34]
**     for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

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