vxKernel/kernel/src/modules/usb/usb.c

37 lines
739 B
C

#include <string.h>
#include <vhex/usb.h>
#include <vhex/driver.h>
#include <vhex/module.h>
//---
// Kernel module information
//---
/* Internal USB driver information */
bool usb_logger_attached;
usb_logger_t usb_logger;
/* __timer_init() : initialize the timer module */
static void __usb_init(void)
{
usb_logger_attached = false;
memset(&usb_logger, 0x00, sizeof(usb_logger_t));
}
/* __timer_quit() : uninitialize the timer module */
static void __usb_quit(void)
{
memset(&usb_logger, 0x00, sizeof(usb_logger_t));
usb_logger_attached = false;
}
/* declare the timer module */
struct vhex_module mod_usb = {
.name = "USB",
.init = &__usb_init,
.quit = &__usb_quit,
};
VHEX_DECLARE_MODULE(06, mod_usb);