📄 sys_config.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_config.h,v 1.3 2006/08/10 08:11:38 0684248 Exp $
*/
/*
* Target system dependence module (for Toya2)
*
* As for this include file, include is done only from t_config.h.
* Do not do include directly from other files.
*/
#ifndef _SYS_CONFIG_H_
#define _SYS_CONFIG_H_
/*
* Rename of internal identification name of kernel
*/
#include <sys_rename.h>
/*
* The maximum number of interrupt handlers
*/
#define MAX_INT_NUM 64
/*
* Definition whether to support vxget_tim
*/
#define SUPPORT_VXGET_TIM
/*
* Definition concerning serial port number
*/
#define TNUM_PORT 2 /* Number of supported serial ports */
#define TNUM_SIOP 2 /* Number of supported serial I/O ports */
/*
* Definition concerning serial port number
*/
#define LOGTASK_PORTID 1 /* Serial port number used for system log */
/*
* Execution routine in interruption waiting state
*/
#ifdef ARM920T_CORE
#define WAIT_INTERRUPT mcr p15, 0, r3, c7, c0, 4
#else
#define WAIT_INTERRUPT nop
#endif
/*
* Endian of processor
*/
#define SIL_ENDIAN SIL_ENDIAN_LITTLE /* Little endian */
#ifndef _MACRO_ONLY
/*
* Initialization of target system dependence
*/
extern void sys_initialize(void);
/*
* Completion of target system
*
* It is used when the system terminate. It is assumed to
* be realized by ROM monitor call.
*/
extern void sys_exit(void);
/*
* Output of character of target system
*
* Routine of output character of low-level of system. It is assumed to
* be realized by ROM monitor call.
*/
extern void sys_putc(char c);
/*
* Interrupt table
*/
extern FP int_table[MAX_INT_NUM];
/*
* IRQ handler (sys_support.S)
*/
extern void IRQ_Handler(void);
/*
* Generation macro of gateway processing of interruption handler
*/
#define INTHDR_ENTRY(inthdr) extern void inthdr(void)
#define INT_ENTRY(inthdr) inthdr
/*
* Set interrupt handler
*
* Set the interrupt handler start address of interrupt number inhno to inthdr.
*/
extern void define_inh(INHNO inhno, FP inthdr);
#endif /* _MACRO_ONLY */
#endif /* _SYS_CONFIG_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -