Linux下简易蜂鸣器驱动代码及测试实例
摘要:
驱动代码:#include #include #include #include #include #include #include #include #include #define DEVICE_NAME "beep3"#define BEEP_MAGIC 'k'#define BEEP_START_CMD _IO (BEEP_MAGIC, 1)#define BEEP_STOP_CMD _IO (BEEP_MAGIC, 2)static void beep3_stop(void) { printk("in the beep3_stop!!\ 阅读全文
posted @ 2013-08-25 20:43 熊猫酒仙是也 阅读(1601) 评论(0) 推荐(0) 编辑