summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-03-11 12:32:29 +0700
committerhathach <[email protected]>2020-03-11 12:32:29 +0700
commit5fa1e6e242f08d340a46b9a8c885b8495dbe2c76 (patch)
tree106767d1dccbb015966c98e8792b9da9d1021af9 /examples
parentcc494ab58521c8393240844f3f8f46347a44fc03 (diff)
hack to undef LITTLE_ENDIAN for samg55
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h b/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
index ac274b5f7..0945baf1f 100644
--- a/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
+++ b/examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h
@@ -58,8 +58,11 @@
#elif CFG_TUSB_MCU == OPT_MCU_NRF5X
#include "nrf.h"
-#elif CFG_TUSB_MCU == OPT_MCU_SAMD21 || CFG_TUSB_MCU == OPT_MCU_SAMD51 || \
- CFG_TUSB_MCU == OPT_MCU_SAMG
+#elif CFG_TUSB_MCU == OPT_MCU_SAMD21 || CFG_TUSB_MCU == OPT_MCU_SAMD51
+ #include "sam.h"
+
+#elif CFG_TUSB_MCU == OPT_MCU_SAMG
+ #undef LITTLE_ENDIAN // hack to suppress "LITTLE_ENDIAN" redefined
#include "sam.h"
#elif CFG_TUSB_MCU == OPT_MCU_STM32F0