Skip to content
Prev Previous commit
Next Next commit
Cleaned up files and fixed build issues
  • Loading branch information
satishgn committed Sep 10, 2014
commit fd4d25b985642037c75a51327448495a8aadbf06
1 change: 1 addition & 0 deletions SPARK_Firmware_Driver/inc/hw_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "config.h"
#include "sst25vf_spi.h"
#include "cc3000_common.h"
#include "usb_type.h"
#include "rgbled.h"
#include "usb_hal.h"

Expand Down
2 changes: 1 addition & 1 deletion SPARK_Firmware_Driver/inc/usb_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define __USB_CONF_H

/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "usb_hal.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
Expand Down
10 changes: 5 additions & 5 deletions SPARK_Firmware_Driver/inc/usb_istr.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

extern "C" void USB_Istr(void);
void USB_Istr(void);

/* function prototypes Automatically built defining related macros */

#ifdef USB_CDC_ENABLE
extern "C" void EP1_IN_Callback(void);
void EP1_IN_Callback(void);
#endif
#ifdef USB_HID_ENABLE
extern "C" void EP1_IN_Callback(void);
void EP1_IN_Callback(void);
#endif
void EP2_IN_Callback(void);
void EP3_IN_Callback(void);
Expand All @@ -55,7 +55,7 @@ void EP7_IN_Callback(void);
void EP1_OUT_Callback(void);
void EP2_OUT_Callback(void);
#ifdef USB_CDC_ENABLE
extern "C" void EP3_OUT_Callback(void);
void EP3_OUT_Callback(void);
#endif
#ifdef USB_HID_ENABLE
void EP3_OUT_Callback(void);
Expand Down Expand Up @@ -91,7 +91,7 @@ void RESET_Callback(void);

#ifdef SOF_CALLBACK
#ifdef USB_CDC_ENABLE
extern "C" void SOF_Callback(void);
void SOF_Callback(void);
#endif
#endif

Expand Down
2 changes: 0 additions & 2 deletions SPARK_Firmware_Driver/src/usb_desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
*/

/* Includes ------------------------------------------------------------------*/
extern "C" {
#include "usb_conf.h"
#include "usb_lib.h"
#include "usb_desc.h"
}

#ifdef USB_CDC_ENABLE
/* USB Standard Device Descriptor */
Expand Down
4 changes: 1 addition & 3 deletions SPARK_Firmware_Driver/src/usb_endp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
*/

/* Includes ------------------------------------------------------------------*/
#include "main.h"
extern "C" {
#include "usb_hal.h"
#include "usb_lib.h"
#include "usb_desc.h"
#include "usb_mem.h"
#include "usb_istr.h"
#include "usb_pwr.h"
}

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
Expand Down
2 changes: 0 additions & 2 deletions SPARK_Firmware_Driver/src/usb_istr.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@
*/

/* Includes ------------------------------------------------------------------*/
extern "C" {
#include "usb_lib.h"
#include "usb_prop.h"
#include "usb_pwr.h"
#include "usb_istr.h"
}

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
Expand Down
4 changes: 1 addition & 3 deletions SPARK_Firmware_Driver/src/usb_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
*/

/* Includes ------------------------------------------------------------------*/
#include "main.h"
extern "C" {
#include "usb_hal.h"
#include "usb_lib.h"
#include "usb_conf.h"
#include "usb_prop.h"
#include "usb_desc.h"
#include "usb_pwr.h"
}

/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
Expand Down
1 change: 0 additions & 1 deletion SPARK_Firmware_Driver/src/usb_pwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "usb_lib.h"
#include "usb_pwr.h"


/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion SPARK_Services/inc/usb_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define __USB_HAL_H

/* Includes ------------------------------------------------------------------*/
#include "usb_type.h"
#include "hw_config.h"

/* Exported types ------------------------------------------------------------*/

Expand Down