led.h
来自「塞普拉思(cypress)的电容触摸按键汇编程序.」· C头文件 代码 · 共 52 行
H
52 行
//*****************************************************************************
//*****************************************************************************
// 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 + =
减小字号Ctrl + -
显示快捷键?