common: Hardcode use of NXP's USB baremetal stack in usb_osa.h.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 16 Jun 2019 19:55:40 +0000 (21:55 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jul 2019 07:58:43 +0000 (09:58 +0200)
src/common/usb_osa.h

index 203d73388180f18c68a6e64ad60aec30610979a8..748f1bc63c7952d25c5ae4eaeaece39cd885f440 100644 (file)
@@ -79,50 +79,8 @@ typedef enum _usb_osa_event_mode
     kUSB_OsaEventAutoClear = 1U,   /*!< The flags of the event is cleared automatically. */
 } usb_osa_event_mode_t;
 
-/* Include required header file based on RTOS selection */
-#if defined(USB_STACK_BM)
-
-#include "usb_osa_bm.h"
-
-#elif defined(USB_STACK_FREERTOS)
-
-#include "usb_osa_freertos.h"
-
-#elif defined(USB_STACK_UCOSII)
-
-#include "usb_osa_ucosii.h"
-
-#elif defined(USB_STACK_UCOSIII)
-
-#include "usb_osa_ucosiii.h"
-
-#else
-#if defined(SDK_OS_BAREMETAL)
-
-#define USB_STACK_BM
 #include "usb_osa_bm.h"
 
-#elif defined(SDK_OS_FREE_RTOS)
-
-#define USB_STACK_FREERTOS
-#include "usb_osa_freertos.h"
-
-#elif defined(SDK_OS_UCOSII)
-
-#define USB_STACK_UCOSII
-#include "usb_osa_ucosii.h"
-
-#elif defined(SDK_OS_UCOSIII)
-
-#define USB_STACK_UCOSIII
-#include "usb_osa_ucosiii.h"
-
-#else
-
-#error Not define RTOS in file "usb_osa.h".
-#endif
-#endif
-
 /*******************************************************************************
  * API
  ******************************************************************************/