From 8408485693b699034d85b944aaa7405d9867f0ee Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 16 Nov 2010 22:32:55 +0000 Subject: [PATCH] Reorder the header include. Add types include. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4561 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/usb_hid.h | 2 ++ bertos/drv/usbkbd.c | 5 +++-- bertos/drv/usbmouse.c | 5 +++-- bertos/drv/usbser.c | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bertos/drv/usb_hid.h b/bertos/drv/usb_hid.h index 7cf09d52..32cf7117 100644 --- a/bertos/drv/usb_hid.h +++ b/bertos/drv/usb_hid.h @@ -38,6 +38,8 @@ #ifndef USB_HID_H #define USB_HID_H +#include + /* * USB HID interface subclass and protocol codes */ diff --git a/bertos/drv/usbkbd.c b/bertos/drv/usbkbd.c index 3cf552d0..bdacc41c 100644 --- a/bertos/drv/usbkbd.c +++ b/bertos/drv/usbkbd.c @@ -36,6 +36,9 @@ * */ +#include "usb_hid.h" +#include "usbkbd.h" + #include "cfg/cfg_usbkbd.h" #define LOG_LEVEL USB_KEYBOARD_LOG_LEVEL @@ -52,8 +55,6 @@ #include #include -#include "drv/usb_hid.h" -#include "drv/usbkbd.h" /* * HID device configuration (usb-keyboard) diff --git a/bertos/drv/usbmouse.c b/bertos/drv/usbmouse.c index dd1708b0..4bea725a 100644 --- a/bertos/drv/usbmouse.c +++ b/bertos/drv/usbmouse.c @@ -36,6 +36,9 @@ * */ +#include "usb_hid.h" +#include "usbmouse.h" + #include "cfg/cfg_usbmouse.h" #define LOG_LEVEL USB_MOUSE_LOG_LEVEL @@ -52,8 +55,6 @@ #include #include -#include "drv/usb_hid.h" -#include "drv/usbmouse.h" /* * HID device configuration (usb-mouse) diff --git a/bertos/drv/usbser.c b/bertos/drv/usbser.c index d89e3d65..04eb3d82 100644 --- a/bertos/drv/usbser.c +++ b/bertos/drv/usbser.c @@ -36,6 +36,8 @@ * */ +#include "usbser.h" + #include "cfg/cfg_usbser.h" #define LOG_LEVEL USB_SERIAL_LOG_LEVEL @@ -56,7 +58,6 @@ #include /* memcpy() */ -#include "drv/usbser.h" #define USB_SERIAL_INTERFACES 1 #define USB_SERIAL_ENDPOINTS 3 -- 2.25.1