📄 led.h
字号:
//*****************************************************************************
//*****************************************************************************
// FILENAME: LED.h
// Version: 1.2, Updated on 2006/10/26 at 11:51:45
// Generated by PSoC Designer ver 4.4 b1884 : 14 Jan, 2007
//
// DESCRIPTION: LED User Module C Language interface file
// for the (22/24/26/27/29xxx) PSoC family of devices
//-----------------------------------------------------------------------------
// Copyright (c) Cypress MicroSystems 2005. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#include <m8c.h>
/* Create pragmas to support proper argument and return value passing */
#pragma fastcall16 LED_Stop
#pragma fastcall16 LED_Start
#pragma fastcall16 LED_On
#pragma fastcall16 LED_Off
#pragma fastcall16 LED_Switch
#pragma fastcall16 LED_Invert
#pragma fastcall16 LED_GetState
//-------------------------------------------------
// Constants for LED API's.
//-------------------------------------------------
//
#define LED_ON 1
#define LED_OFF 0
//-------------------------------------------------
// Prototypes of the LED API.
//-------------------------------------------------
extern void LED_Start(void);
extern void LED_Stop(void);
extern void LED_On(void);
extern void LED_Off(void);
extern void LED_Switch(BYTE bSwitch);
extern void LED_Invert(void);
extern BYTE LED_GetState(void);
//-------------------------------------------------
// Define global variables.
//-------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -