includes.h

来自「ADS1.2 开发环境下开发的音频程序代码」· C头文件 代码 · 共 59 行

H
59
字号
/* ChronOS Includes.h file for Samsung ARM port
 *
 * Copyright  2002 By InterNiche Technologies Inc. All rights reserved
 *
 * MODULE: SNDS300
 *
 * PORTABLE: no
 */

/* Include Samsung hardware definition for critcal section macros. */

/*#include "snds.h"*/
/*#include "isr.h"*/


#ifndef __INCLUDES_H__
#define __INCLUDES_H__

//****************CPU**************//
#include "../startup/option.h"
#include "../startup/44b.h"
#include "uhal\uhal.h"
#include "../inc/drv.h"
/////////////////////////////////////////////////

#define EXTERN
/* #define EXTERN extern */

/* uCOS constants for Samsung ARM port */

#define INT8U     unsigned char
#define INT16U    unsigned short
#define INT32U    unsigned long
#define OS_STK    unsigned long
#define BOOLEAN   int
#define OS_CPU_SR unsigned long
#define INT8S     char

//****************OS***************//
#include    "os_cfg.h"
#include    "chronos.h"


/* critical section macros use "method 3" (save to local var "cpu_sr") */
extern int  INTS_OFF(void);      /* ASM routines to twiddle bits */
extern void INTS_ON(void);

#define  OS_ENTER_CRITICAL()  { cpu_sr = INTS_OFF(); }
#define  OS_EXIT_CRITICAL()   { if(cpu_sr == 0) INTS_ON(); }

#define  OS_STK_GROWTH        1 	/* Stack grows from HIGH to LOW memory  */


#define	STACKSIZE	256


#endif /* __INCLUDES_H__ */

⌨️ 快捷键说明

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