diff options
| author | William D. Jones <[email protected]> | 2019-09-23 17:48:18 -0400 |
|---|---|---|
| committer | William D. Jones <[email protected]> | 2019-09-23 17:48:18 -0400 |
| commit | 907bc3df9ba70c9a82ad2f98031879f17e2ad2b5 (patch) | |
| tree | 30ad02c058e2f2438fa15332835d91ef1405d4d5 | |
| parent | 49f2507b3824260bcb5df3a8c740dd935ac21149 (diff) | |
msp430f5529: Ensure cdc_msc demo compiles.
| -rw-r--r-- | hw/bsp/msp_exp430f5529lp/board.mk | 3 | ||||
| -rw-r--r-- | src/portable/ti/msp430x5xx/dcd_msp430x5xx.c | 1 | ||||
| -rw-r--r-- | src/tusb_option.h | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/hw/bsp/msp_exp430f5529lp/board.mk b/hw/bsp/msp_exp430f5529lp/board.mk index 741b3e00e..b47e764bd 100644 --- a/hw/bsp/msp_exp430f5529lp/board.mk +++ b/hw/bsp/msp_exp430f5529lp/board.mk @@ -1,6 +1,7 @@ CFLAGS += \ -D__MSP430F5529__ \ - -DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx + -DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx \ + -DCFG_EXAMPLE_MSC_READONLY # All source paths should be relative to the top level. LD_FILE = hw/bsp/msp_exp430f5529lp/msp430f5529.ld diff --git a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c index 4c8c370ce..b2df9e3b6 100644 --- a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c +++ b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c @@ -29,6 +29,7 @@ #if TUSB_OPT_DEVICE_ENABLED && ( CFG_TUSB_MCU == OPT_MCU_MSP430x5xx ) +#include "msp430.h" #include "device/dcd.h" /*------------------------------------------------------------------*/ diff --git a/src/tusb_option.h b/src/tusb_option.h index eccb4245c..5de599951 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -60,6 +60,8 @@ #define OPT_MCU_STM32F7 305 ///< ST STM32F7
#define OPT_MCU_STM32H7 306 ///< ST STM32H7
+#define OPT_MCU_MSP430x5xx 400 ///< TI MSP430x5xx
+
/** @} */
|
