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

📄 led1.h

📁 BLDC电机控制源代码
💻 H
字号:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : LED1.H
**     Project   : BLDC_sensor
**     Processor : 56F8013VFAE
**     Beantype  : Led
**     Version   : Bean 01.006, Driver 01.05, CPU db: 2.87.068
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 2006-07-24, 16:32
**     Abstract  :
**          This bean provide methods for driving of LED device.
**          Methods On, Off, Set and Toggle (or only initialization code)
**          could be used to drive it. Output value, defined by Init.
**          value property, is used for initialization implicitly.
**          It is not necessary to use any method explicitly in start up.
**          Method Status return current status of the LED device.
**          LED drivers without output inverter are supported
**          via Inverted value property.
**     Settings  :
**          Output PIN                                     :GPIOA2_PWM2
**          Initialize Value                               :Off
**          Inverted Value                                 :no
**     Contents  :
**         On     - void LED1_On(void);
**         Off    - void LED1_Off(void);
**         Toggle - void LED1_Toggle(void);
**         Set    - void LED1_Set(bool Output);
**         Status - bool LED1_Status(void);
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2004
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

#ifndef __LED1
#define __LED1

/* MODULE LED1. */

/*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 inherited beans */
#include "Inhr1.h"

#include "Cpu.h"


#define LED1_On() Inhr1_SetVal()
/*
** ===================================================================
**     Method      :  LED1_On (bean Led)
**
**     Description :
**         Switch ON the LED device
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define LED1_Off() Inhr1_ClrVal()
/*
** ===================================================================
**     Method      :  LED1_Off (bean Led)
**
**     Description :
**         Switch OFF the LED device
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define LED1_Toggle() Inhr1_NegVal()
/*
** ===================================================================
**     Method      :  LED1_Toggle (bean Led)
**
**     Description :
**         Toggle the LED device value
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define LED1_Set(Output) Inhr1_PutVal(Output)
/*
** ===================================================================
**     Method      :  LED1_Set (bean Led)
**
**     Description :
**         Put the specified value to the LED
**     Parameters  :
**         NAME            - DESCRIPTION
**         Output          - Set LED status (ON/OFF) accordant
**                           with the 'Output' value
**                           TRUE - Turn the LED ON
**                           FALSE - Turn the LED OFF
**     Returns     : Nothing
** ===================================================================
*/

#define LED1_Status() Inhr1_GetVal()
/*
** ===================================================================
**     Method      :  LED1_Status (bean Led)
**
**     Description :
**         Return the last written value of the LED device
**     Parameters  : None
**     Returns     :
**         ---             - The last written value of the LED
**                           device.
**                           TRUE - The LED is ON
**                           FALSE - The LED is OFF
** ===================================================================
*/

/* END LED1. */

#endif /* ifndef __LED1 */
/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.96 [03.65]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

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