GadgetSeed
0.9.6
null.c
[詳解]
1
/** @file
2
@brief nullデバイス
3
4
@date 2011.01.29
5
@author Takashi SHUDO
6
*/
7
8
#include "
device.h
"
9
10
static
int
null_register(
struct
st_device
*dev,
char
*param)
11
{
12
return
0;
13
}
14
15
static
int
null_putc(
struct
st_device
*dev,
unsigned
char
ch)
16
{
17
return
1;
18
}
19
20
const
struct
st_device
null_device = {
21
.
name
=
"null"
,
22
.explan =
"null device"
,
23
.register_dev = null_register,
24
.putc = null_putc,
25
};
device.h
デバイスドライバAPI
st_device
デバイスドライバ構造体
Definition:
device.h:25
st_device::name
char name[MAX_DEVNAMELRN]
デバイス名文字列
Definition:
device.h:26
drivers
null.c
構築:
1.8.13