📄 sys_defs.h
字号:
/*
* The above copyright holder, limited to cases in which one satisfies
* conditions (1) ~ (4) below, or the conditions described in Version 2
* of of the GNU Public License officially announced by the Free Software
* Foundation, consents to the use, reproduction, alteration, and
* redistribution (hereafter called utilization) of this software (this
* software includes alterations, likewise below) without compensation.
*
* (1) When this software is utilized in the form of source code, the
* above copyright declaration, these conditions of utilization, and the
* following stipulation of no guarantee shall be included in unchanged
* form inside the source code.
* (2) When this software is redistributed in a form in which it can be
* used in the development of other software, library form, etc., the above
* copyright display, these terms of utilization, and the following
* stipulation of no guarantee shall be inserted in documentation accompanying
* redistribution (user's manual, etc.).
* (3) When this software is redistributed in a form in which it cannot be used
* in the development of other software, embedded in devices, etc., one of the
* following conditions shall be satisfied.
* (a) The above copyright display, these terms of utilization, and the
* following stipulation of no guarantee shall be inserted in documentation
* accompanying redistribution (user's manual, etc.).
* (b) The TOPPERS Project shall be notified owing to a method in which the
* form of distribution is decided otherwise.
* (4) The above copyright holder and the TOPPERS Project shall be exempt
* from responsibility for whatever damages occur either directly or indirectly
* through the utilization of this software.
*
* This software is something that is provided with no guarantee. The above copyright
* holder and the TOPPERS Project make no guarantee whatsoever in regard to this
* software, including the possibility of its application. In addition, the above
* copyright holder and the TOPPERS Project shall also not bear responsibility for
* whatever damages occur either directly or indirectly through the utilization of
* this software.
*
* @(#) $Id: sys_defs.h,v 1.2 2006/07/21 09:50:18 9564907 Exp $
*/
/*
* Definition that depends on target system(for TOYA2)
*
* As for this include file, include is done with kernel.h and sil.h.
* Include is not done directly from other files. Because T_stddef.h
* and itron.h may be included befor the include of this file . So it may
* depend on them.
*/
#ifndef _SYS_DEFS_H_
#define _SYS_DEFS_H_
/*
* Target system name of start message
*/
#define TARGET_NAME "ARM - TOYA2(Dragonball i.MX21)"
#define STACKTOP 0xC4000000 /* Initial value of stack for non-task context */
/*
* Internal expression of timer value and conversion with unit of millisecond
*/
#define TIMER_CLOCK 24000
/*
* Service call of target system dependence
*/
#ifndef _MACRO_ONLY
/*
* Enable /Disable of the INTNO type and interrupt
*/
typedef UINT INTNO; /* Interrupt number */
typedef UINT INHNO; /* Interrupt handler number */
typedef UD SYSUTIM; /* System time for performance evaluation */
extern ER vxget_tim(SYSUTIM *pk_sysutim) throw();
#endif /* _MACRO_ONLY */
/*
* Definition for timer tick
*/
#define TIC_NUME 1 /* Molecule of timer tick cycle */
#define TIC_DENO 1 /* Denominator of timer tick cycle */
/*
* Defination for waiting for short time
*/
#define SIL_DLY_TIM1 20
#define SIL_DLY_TIM2 10
/*
* Endian of processor
*/
#define SIL_ENDIAN SIL_ENDIAN_LITTLE /* Little endian */
#ifndef _MACRO_ONLY
/*
* Process the interrupt of the system
*/
Inline void
kernel_abort()
{
while(1);
}
#endif /* _MACRO_ONLY */
#endif /* _SYS_DEFS_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -