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

📄 bsp_st.h

📁 IAR 平台ATMEL 的例程, 和说明
💻 H
字号:
/*-----------------------------------------------------------------------------
*   EUROPE TECHNOLOGIES Software Support
*------------------------------------------------------------------------------
* The software is delivered "AS IS" without warranty or condition of any
* kind, either express, implied or statutory. This includes without
* limitation any warranty or condition with respect to merchantability or
* fitness for any particular purpose, or against the infringements of
* intellectual property rights of others.
*------------------------------------------------------------------------------
*
* Processor   : SmartCAN1 for EVMSmartCAN
* File Name   : bsp_st.h
* Description : Definitions and Standard Typedef for
                Simple Timer (Board Support Package Layer)               
* Version     : 1.01
*
*       +----- (NEW | MODify | ADD | DELete)                                 
*       |                                                                    
*  No   |   when       who                what               
*-----+---+----------+------------------+--------------------------------------
* 000  NEW  01/04/01   Olivier MAZUYER    Creation
* 001  ADD  08/08/01   Frederic SAMSON    -  Add structures, variables, functions
*                                            definitions
*----------------------------------------------------------------------------*/


#ifndef BSP_ST_H
#define BSP_ST_H

/*****************************************/
/* BSP ST Callback Definition            */
/*****************************************/

/*******************************************************************************
Type: BSP_ST_CALLBACK_T
Description: BSP ST Callback Definition
Declaration: typedef *(BSP_ST_CALLBACK_T)(CSP_ST_T *st, U8_T channel_u8);
Inputs:
- 创CSP_ST_T创   *st : pointer on 创CSP_ST_T创 structure 
- 创U8_T创       channel_u8 : channel
*******************************************************************************/
typedef *(BSP_ST_CALLBACK_T)(CSP_ST_T *st, U8_T channel_u8);

/*****************************************/
/* BSP ST Structure Definition           */
/*****************************************/

/*******************************************************************************
Type: BSP_ST_CONFIGURE_T
Description: BSP ST Structure Definition
Fields:
- 创BSP_ST_CALLBACK_T创   *callback_function;
*******************************************************************************/
typedef struct
{
   BSP_ST_CALLBACK_T   *callback_function;
} BSP_ST_CONFIGURE_T;

/*****************************************/
/* BSP ST External variables Definitions */
/*****************************************/
extern BSP_ST_CONFIGURE_T BSP_ST_Config_s ;

/******************************************************************************
*  External Function Declaration
******************************************************************************/
extern void BSP_STWaitDelay(CSP_ST_T *const st, U16_T channel_u8, U32_T delay);
extern void BSP_STStartDelay(CSP_ST_T *const st, U16_T channel_u8, U32_T delay_u32);
extern void ST0CH0_InterruptHandler(void);
extern void ST0CH1_InterruptHandler(void);
extern void ST1CH0_InterruptHandler(void);
extern void ST1CH1_InterruptHandler(void);
extern void ST0CH0_AsmInterruptHandler(void);
extern void ST0CH1_AsmInterruptHandler(void);
extern void ST1CH0_AsmInterruptHandler(void);
extern void ST1CH1_AsmInterruptHandler(void);

#endif  /* BSP_ST_H */

⌨️ 快捷键说明

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