?? ledblink.c
字號:
/*ledblink.c*/
#define MODULE
#include <Linux/module.h>
#include <asm/system.h> /* 匯編頭文件 */
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <asm/bitops.h>
#include <asm/hardware.h>
#include <asm/hardware/clps7111.h>
int init_module( void )
{
/* Turn on the Led on insmod */
clps_writel(0x01, PDDR);
return 0;
}
void cleanup_module( void )
{
/* Turn off the led on rmmod*/
clps_writel(~0x01,PDDR);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -