From e27abfe173201795c02bb49c21cdbd4603a7ebd3 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 10 Nov 2022 21:50:33 +0100 Subject: [PATCH] treewide: sort includes --- include/can.h | 3 +-- include/usbd_gs_can.h | 7 ++++--- src/main.c | 16 ++++++++-------- src/usbd_gs_can.c | 21 +++++++++++---------- 4 files changed, 24 insertions(+), 23 deletions(-) diff --git a/include/can.h b/include/can.h index 388df52..8376aea 100644 --- a/include/can.h +++ b/include/can.h @@ -29,9 +29,8 @@ THE SOFTWARE. #include #include -#include "hal_include.h" - #include "gs_usb.h" +#include "hal_include.h" typedef struct { CAN_TypeDef *instance; diff --git a/include/usbd_gs_can.h b/include/usbd_gs_can.h index e09043e..b211f58 100644 --- a/include/usbd_gs_can.h +++ b/include/usbd_gs_can.h @@ -28,11 +28,12 @@ THE SOFTWARE. #include #include -#include "usbd_def.h" -#include "queue.h" -#include "led.h" + #include "can.h" #include "gs_usb.h" +#include "led.h" +#include "queue.h" +#include "usbd_def.h" /* Define these here so they can be referenced in other files */ diff --git a/src/main.c b/src/main.c index 4145c83..a3e12e3 100644 --- a/src/main.c +++ b/src/main.c @@ -28,20 +28,20 @@ THE SOFTWARE. #include #include +#include "can.h" #include "config.h" +#include "dfu.h" +#include "gpio.h" +#include "gs_usb.h" #include "hal_include.h" +#include "led.h" +#include "queue.h" +#include "timer.h" #include "usbd_conf.h" +#include "usbd_core.h" #include "usbd_def.h" #include "usbd_desc.h" -#include "usbd_core.h" #include "usbd_gs_can.h" -#include "gpio.h" -#include "queue.h" -#include "gs_usb.h" -#include "can.h" -#include "led.h" -#include "dfu.h" -#include "timer.h" #include "util.h" void HAL_MspInit(void); diff --git a/src/usbd_gs_can.c b/src/usbd_gs_can.c index 0816466..2e484b9 100644 --- a/src/usbd_gs_can.c +++ b/src/usbd_gs_can.c @@ -24,22 +24,23 @@ THE SOFTWARE. */ -#include "usbd_gs_can.h" -#include "config.h" #include #include -#include "hal_include.h" -#include "usbd_desc.h" -#include "usbd_core.h" -#include "usbd_def.h" -#include "usbd_ctlreq.h" -#include "usbd_ioreq.h" -#include "gs_usb.h" + #include "can.h" +#include "config.h" +#include "gpio.h" +#include "gs_usb.h" +#include "hal_include.h" #include "led.h" #include "queue.h" -#include "gpio.h" #include "timer.h" +#include "usbd_core.h" +#include "usbd_ctlreq.h" +#include "usbd_def.h" +#include "usbd_desc.h" +#include "usbd_gs_can.h" +#include "usbd_ioreq.h" #include "util.h" typedef struct {