ת»»Ϊgb2312±àÂë
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
|
||||
|
||||
// 定义设备文件
|
||||
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>豸<EFBFBD>ļ<EFBFBD>
|
||||
typedef struct
|
||||
{
|
||||
const char *name;
|
||||
@@ -17,7 +17,7 @@ typedef struct
|
||||
}libc_device_file;
|
||||
|
||||
|
||||
// 使用这个宏用于初始化
|
||||
// ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڳ<EFBFBD>ʼ<EFBFBD><EFBFBD>
|
||||
#define extern_device(name_,putc_,getc_,write_,read_)\
|
||||
const char __libc_##name_[] __attribute__((section(".name"))) = #name_;\
|
||||
__attribute__((used,section(".libc_dev"))) const libc_device_file __libc_dev_##name_ =\
|
||||
@@ -30,7 +30,7 @@ typedef struct
|
||||
};
|
||||
|
||||
|
||||
// 使用这个宏用于初始化,包括打开关闭函数
|
||||
// ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڳ<EFBFBD>ʼ<EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD>رպ<D8B1><D5BA><EFBFBD>
|
||||
#define extern_device2(name_,open_,close_,putc_,getc_,write_,read_)\
|
||||
const char __libc_##name_[] __attribute__((section(".name"))) = #name_;\
|
||||
__attribute__((used,section(".libc_dev"))) const libc_device_file __libc_dev_##name_ =\
|
||||
|
||||
Reference in New Issue
Block a user