source: anotherchoice/tags/jsp-1.4.4-full-UTF8/systask/serial.cfg@ 26

Last change on this file since 26 was 26, checked in by ykominami, 10 years ago

initial

File size: 1.1 KB
Line 
1/*
2 * @(#) $Id: serial.cfg,v 1.8 2005/11/12 15:02:05 hiro Exp $
3 */
4
5/*
6 * シリアルインタフェースドライバのコンフィギュレーションファイル
7 */
8
9#ifndef _MACRO_ONLY
10#define _MACRO_ONLY
11#endif
12
13#include <t_config.h>
14
15#ifdef LINUX
16
17/*
18 * Linux上でのシミュレーション環境の場合
19 */
20#include "linux_sigio.cfg"
21#include "linux_serial.cfg"
22
23#else /* LINUX */
24
25/*
26 * 通常のターゲット環境の場合
27 */
28#include <hw_serial.cfg>
29
30INCLUDE("\"serial.h\"");
31ATT_INI({ TA_HLNG, 0, serial_initialize });
32
33CRE_SEM(SERIAL_RCV_SEM1, { TA_TPRI, 0, 1 });
34CRE_SEM(SERIAL_SND_SEM1, { TA_TPRI, 1, 1 });
35#if TNUM_PORT >= 2
36CRE_SEM(SERIAL_RCV_SEM2, { TA_TPRI, 0, 1 });
37CRE_SEM(SERIAL_SND_SEM2, { TA_TPRI, 1, 1 });
38#endif
39#if TNUM_PORT >= 3
40CRE_SEM(SERIAL_RCV_SEM3, { TA_TPRI, 0, 1 });
41CRE_SEM(SERIAL_SND_SEM3, { TA_TPRI, 1, 1 });
42#endif
43#if TNUM_PORT >= 4
44CRE_SEM(SERIAL_RCV_SEM4, { TA_TPRI, 0, 1 });
45CRE_SEM(SERIAL_SND_SEM4, { TA_TPRI, 1, 1 });
46#endif
47#if TNUM_PORT >= 5
48CRE_SEM(SERIAL_RCV_SEM5, { TA_TPRI, 0, 1 });
49CRE_SEM(SERIAL_SND_SEM5, { TA_TPRI, 1, 1 });
50#endif
51
52
53#endif /* LINUX */
Note: See TracBrowser for help on using the repository browser.