阅读:1761回复:7
usb驱动函数 |
|
|
沙发#
发布于:2007-05-08 00:05
谢谢
|
|
板凳#
发布于:2007-05-01 22:40
谢谢!
|
|
地板#
发布于:2007-04-28 19:44
有没有人会寄存器初始化?
|
|
地下室#
发布于:2007-04-28 17:04
谢谢!!
|
|
5楼#
发布于:2007-03-29 13:34
#include <registers.h>
#include <usb_lib.h> void usb_core_interrupt_enable(unsigned int mask) { if (mask & USB_INTERRUPT_CORE_MASK) { fd.usb.int_en.usb_int = 1; } if (mask & USB_INTERRUPT_FIFO_MASK) { fd.usb.int_en.fifo_int = 1; } if (mask & USB_INTERRUPT_WAKEUP_MASK) { fd.usb.int_en.wakeup_int = 1; } } #include <registers.h> #include <usb_lib.h> void usb_core_interrupt_disable(unsigned int mask) { if (mask & USB_INTERRUPT_CORE_MASK) { fd.usb.int_dis.usb_int = 1; } if (mask & USB_INTERRUPT_FIFO_MASK) { fd.usb.int_dis.fifo_int = 1; } if (mask & USB_INTERRUPT_WAKEUP_MASK) { fd.usb.int_dis.wakeup_int = 1; } } 不一样啊 |
|
|
6楼#
发布于:2007-03-29 09:43
usb_core_interrupt_enable和usb_core_interrupt_disable两个函数为什么代码是一样的?请指教
|
|
7楼#
发布于:2007-03-29 08:40
看看,先谢谢了
|
|
|