From decd8b673fa117699c29f80ce29a3972320237d4 Mon Sep 17 00:00:00 2001 From: arighi Date: Fri, 24 Sep 2010 12:41:47 +0000 Subject: [PATCH] USB: rename usb_mouse module in usbmouse git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4293 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/{cfg_usb_mouse.h => cfg_usbmouse.h} | 8 ++++---- bertos/drv/{usb_mouse.c => usbmouse.c} | 8 ++++---- bertos/drv/{usb_mouse.h => usbmouse.h} | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) rename bertos/cfg/{cfg_usb_mouse.h => cfg_usbmouse.h} (92%) rename bertos/drv/{usb_mouse.c => usbmouse.c} (98%) rename bertos/drv/{usb_mouse.h => usbmouse.h} (85%) diff --git a/bertos/cfg/cfg_usb_mouse.h b/bertos/cfg/cfg_usbmouse.h similarity index 92% rename from bertos/cfg/cfg_usb_mouse.h rename to bertos/cfg/cfg_usbmouse.h index 0244360a..c3b09719 100644 --- a/bertos/cfg/cfg_usb_mouse.h +++ b/bertos/cfg/cfg_usbmouse.h @@ -32,11 +32,11 @@ * * \author Andrea Righi * - * \brief Configuration file for the usb-mouse driver module + * \brief Configuration file for the usbmouse driver module */ -#ifndef CFG_USB_MOUSE_H -#define CFG_USB_MOUSE_H +#ifndef CFG_USBMOUSE_H +#define CFG_USBMOUSE_H /** * Module logging level. @@ -54,4 +54,4 @@ */ #define USB_MOUSE_LOG_FORMAT LOG_FMT_TERSE -#endif /* CFG_USB_MOUSE_H */ +#endif /* CFG_USBMOUSE_H */ diff --git a/bertos/drv/usb_mouse.c b/bertos/drv/usbmouse.c similarity index 98% rename from bertos/drv/usb_mouse.c rename to bertos/drv/usbmouse.c index 7a59c769..b725a8f4 100644 --- a/bertos/drv/usb_mouse.c +++ b/bertos/drv/usbmouse.c @@ -36,7 +36,7 @@ * */ -#include "cfg/cfg_usb_mouse.h" +#include "cfg/cfg_usbmouse.h" #define LOG_LEVEL USB_MOUSE_LOG_LEVEL #define LOG_FORMAT USB_MOUSE_LOG_FORMAT @@ -52,7 +52,7 @@ #include #include "drv/usb_hid.h" -#include "drv/usb_mouse.h" +#include "drv/usbmouse.h" /* * HID device configuration (usb-mouse) @@ -270,7 +270,7 @@ static int usb_mouse_hw_init(void) } /* Send a mouse event */ -void usb_mouseSendEvent(int8_t x, int8_t y, int8_t buttons) +void usbmouse_sendEvent(int8_t x, int8_t y, int8_t buttons) { report.x = x; report.y = y; @@ -283,7 +283,7 @@ void usb_mouseSendEvent(int8_t x, int8_t y, int8_t buttons) * * TODO: support more than one device at the same time. */ -int usb_mouseInit(UNUSED_ARG(int, unit)) +int usbmouse_init(UNUSED_ARG(int, unit)) { #if CONFIG_KERN MOD_CHECK(proc); diff --git a/bertos/drv/usb_mouse.h b/bertos/drv/usbmouse.h similarity index 85% rename from bertos/drv/usb_mouse.h rename to bertos/drv/usbmouse.h index 010c34b5..18eb9499 100644 --- a/bertos/drv/usb_mouse.h +++ b/bertos/drv/usbmouse.h @@ -34,15 +34,15 @@ * * \brief Generic USB mouse device driver. * - * $WIZ$ module_name = "usb_mouse" - * $WIZ$ module_configuration = "bertos/cfg/cfg_usb_mouse.h" + * $WIZ$ module_name = "usbmouse" + * $WIZ$ module_configuration = "bertos/cfg/cfg_usbmouse.h" * $WIZ$ module_depends = "usb" */ -#ifndef USB_MOUSE_H -#define USB_MOUSE_H +#ifndef USBMOUSE_H +#define USBMOUSE_H -void usb_mouseSendEvent(int8_t x, int8_t y, int8_t buttons); -int usb_mouseInit(int unit); +void usbmouse_sendEvent(int8_t x, int8_t y, int8_t buttons); +int usbmouse_init(int unit); -#endif /* USB_MOUSE_H */ +#endif /* USBMOUSE_H */ -- 2.25.1