bsp_st.h

来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 79 行

H
79
字号
/*-----------------------------------------------------------------------------
*   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 void *(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 + =
减小字号Ctrl + -
显示快捷键?