📄 app.h
字号:
/*============================================================================
____________________________________________________________________________
______________________________________________
SSSS M M CCCC Standard Microsystems Corporation
S MM MM SSSS C Austin Design Center
SSS M M M S C 11000 N. Mopac Expressway
S M M SSS C Stonelake Bldg. 6, Suite 500
SSSS M M S CCCC Austin, Texas 78759
SSSS ______________________________________________
____________________________________________________________________________
Copyright(C) 1999, Standard Microsystems Corporation
All Rights Reserved.
This program code listing is proprietary to SMSC and may not be copied,
distributed, or used without a license to do so. Such license may have
Limited or Restricted Rights. Please refer to the license for further
clarification.
____________________________________________________________________________
Notice: The program contained in this listing is a proprietary trade
secret of SMSC, Hauppauge, New York, and is copyrighted
under the United States Copyright Act of 1976 as an unpublished work,
pursuant to Section 104 and Section 408 of Title XVII of the United
States code. Unauthorized copying, adaption, distribution, use, or
display is prohibited by this law.
____________________________________________________________________________
Use, duplication, or disclosure by the Government is subject to
restrictions as set forth in subparagraph(c)(1)(ii) of the Rights
in Technical Data and Computer Software clause at DFARS 52.227-7013.
Contractor/Manufacturer is Standard Microsystems Corporation,
80 Arkay Drive, Hauppauge, New York, 1178-8847.
____________________________________________________________________________
____________________________________________________________________________
<module name> - <module description>
____________________________________________________________________________
comments tbd
____________________________________________________________________________
Revision History
Date Who Comment
________ ___ _____________________________________________________________
03/15/01 tbh -initial version
============================================================================*/
// types
typedef uint16 t_app_attribute_mask;
// attributes
#define kbm_bus_powered 512
#define kbm_hub_enabled 256
#define kbm_soft_attach_gpio7 128
#define kbm_soft_attach_gpio6 64
#define kbm_soft_attach_gpio5 32
#define kbm_soft_attach_gpio4 16
#define kbm_soft_attach_gpio3 8
#define kbm_soft_attach_gpio2 4
#define kbm_soft_attach_gpio1 2
#define kbm_soft_attach_gpio0 1
#define kbm_none 0
//!!! items that must be declared in app.c in future versions
//#define k_pfm_6126
//#define k_pfm_6075
//!!!!!!!!!!!!!!!!!!
// PLATFORM DEPENDENT CRUD MUST MOVE TO THE APPLICATION!!!
//!!!!!!!!!!!!!!!!!!
// THIS STUFF IS USED BY THE ISR, HUB, GPIO, and DEBUG modules
// SO IT CANNOT ALL BE SIMPLY RIPPED OUT AND INTO AN INTERFACE MANAGER.
// SOMETHING MUST BE DONE TO DECPOUPLE THIS AND MOVE IT OUT OF THE
// KERNEL, BUT I DON"T HAVE A PLAN YET.
#ifdef __kernel__
#ifdef __allocate__
#ifdef k_pfm_6126
code t_app_attribute_mask app_attributes = kbm_hub_enabled;
#else
code t_app_attribute_mask app_attributes = kbm_none;
#endif
#else
extern code t_app_attribute_mask app_attributes;
#endif
#endif
extern code uint16 app_vendor_id;
extern code uint16 app_product_id;
extern code uint16 app_device_version;
extern code char app_mfg_string[];
extern code char app_prd_string[];
extern code char app_ser_string[];
#ifndef __kernel__
// application can call these
void mcu_begin_critical_section(void) reentrant;
void mcu_end_critical_section(void) reentrant;
#endif
//---eof------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -