mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
mimxrt: Change OPT_MCU_MIMXRT1xXX to OPT_MCU_MIMXRT.
Which fits both MIMXRT10XX and MIMXRT11XX.
This commit is contained in:
parent
60c1750a9b
commit
ec6f56768a
@ -110,7 +110,7 @@
|
|||||||
#elif CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI
|
#elif CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI
|
||||||
// no header needed
|
// no header needed
|
||||||
|
|
||||||
#elif CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT11XX
|
#elif CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
#include "fsl_device_registers.h"
|
#include "fsl_device_registers.h"
|
||||||
|
|
||||||
#elif CFG_TUSB_MCU == OPT_MCU_NUC120
|
#elif CFG_TUSB_MCU == OPT_MCU_NUC120
|
||||||
|
@ -17,4 +17,4 @@ Flash: `make BOARD=f1c100s flash` will write the image to SPI flash, and then re
|
|||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
* Add F1C100s to `#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX` high speed MCU check in examples (maybe we should extract the logic?)
|
* Add F1C100s to `#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT` high speed MCU check in examples (maybe we should extract the logic?)
|
@ -13,7 +13,7 @@ CFLAGS += \
|
|||||||
-D__ARMVFP__=0 -D__ARMFPV5__=0\
|
-D__ARMVFP__=0 -D__ARMFPV5__=0\
|
||||||
-DXIP_EXTERNAL_FLASH=1 \
|
-DXIP_EXTERNAL_FLASH=1 \
|
||||||
-DXIP_BOOT_HEADER_ENABLE=1 \
|
-DXIP_BOOT_HEADER_ENABLE=1 \
|
||||||
-DCFG_TUSB_MCU=OPT_MCU_MIMXRT10XX
|
-DCFG_TUSB_MCU=OPT_MCU_MIMXRT
|
||||||
|
|
||||||
ifdef BOARD_TUD_RHPORT
|
ifdef BOARD_TUD_RHPORT
|
||||||
CFLAGS += -DBOARD_TUD_RHPORT=$(BOARD_TUD_RHPORT)
|
CFLAGS += -DBOARD_TUD_RHPORT=$(BOARD_TUD_RHPORT)
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
// Use ring buffer if it's available, some MCUs need extra RAM requirements
|
// Use ring buffer if it's available, some MCUs need extra RAM requirements
|
||||||
#ifndef TUD_AUDIO_PREFER_RING_BUFFER
|
#ifndef TUD_AUDIO_PREFER_RING_BUFFER
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT11XX
|
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
#define TUD_AUDIO_PREFER_RING_BUFFER 0
|
#define TUD_AUDIO_PREFER_RING_BUFFER 0
|
||||||
#else
|
#else
|
||||||
#define TUD_AUDIO_PREFER_RING_BUFFER 1
|
#define TUD_AUDIO_PREFER_RING_BUFFER 1
|
||||||
@ -102,8 +102,7 @@
|
|||||||
CFG_TUSB_MCU == OPT_MCU_GD32VF103 || \
|
CFG_TUSB_MCU == OPT_MCU_GD32VF103 || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_LPC18XX || \
|
CFG_TUSB_MCU == OPT_MCU_LPC18XX || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_LPC43XX || \
|
CFG_TUSB_MCU == OPT_MCU_LPC43XX || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX || \
|
CFG_TUSB_MCU == OPT_MCU_MIMXRT || \
|
||||||
CFG_TUSB_MCU == OPT_MCU_MIMXRT11XX || \
|
|
||||||
CFG_TUSB_MCU == OPT_MCU_MSP432E4
|
CFG_TUSB_MCU == OPT_MCU_MSP432E4
|
||||||
#if TUD_AUDIO_PREFER_RING_BUFFER
|
#if TUD_AUDIO_PREFER_RING_BUFFER
|
||||||
#define USE_LINEAR_BUFFER 0
|
#define USE_LINEAR_BUFFER 0
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
// TODO USB0 has 5, USB1 has 6
|
// TODO USB0 has 5, USB1 has 6
|
||||||
#define TUP_DCD_ENDPOINT_MAX 6
|
#define TUP_DCD_ENDPOINT_MAX 6
|
||||||
|
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT10XX, OPT_MCU_MIMXRT11XX)
|
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT)
|
||||||
#define TUP_USBIP_CHIPIDEA_HS
|
#define TUP_USBIP_CHIPIDEA_HS
|
||||||
#define TUP_USBIP_EHCI
|
#define TUP_USBIP_EHCI
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#include "fsl_device_registers.h"
|
#include "fsl_device_registers.h"
|
||||||
|
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT11XX
|
#if !defined(USB1_BASE) && defined(USB_OTG1_BASE)
|
||||||
#define USB1_BASE USB_OTG1_BASE
|
#define USB1_BASE USB_OTG1_BASE
|
||||||
#define USB2_BASE USB_OTG2_BASE
|
#define USB2_BASE USB_OTG2_BASE
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "device/dcd.h"
|
#include "device/dcd.h"
|
||||||
#include "ci_hs_type.h"
|
#include "ci_hs_type.h"
|
||||||
|
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT11XX
|
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
#include "ci_hs_imxrt.h"
|
#include "ci_hs_imxrt.h"
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
|
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
|
||||||
#include "ci_hs_lpc18_43.h"
|
#include "ci_hs_lpc18_43.h"
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
// Chipidea Highspeed USB IP implement EHCI for host functionality
|
// Chipidea Highspeed USB IP implement EHCI for host functionality
|
||||||
|
|
||||||
#if CFG_TUH_ENABLED && \
|
#if CFG_TUH_ENABLED && \
|
||||||
(CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT11XX)
|
(CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT)
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INCLUDE
|
// INCLUDE
|
||||||
@ -39,7 +39,7 @@
|
|||||||
#include "portable/ehci/ehci_api.h"
|
#include "portable/ehci/ehci_api.h"
|
||||||
#include "ci_hs_type.h"
|
#include "ci_hs_type.h"
|
||||||
|
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
#include "ci_hs_imxrt.h"
|
#include "ci_hs_imxrt.h"
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
|
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
|
||||||
#include "ci_hs_lpc18_43.h"
|
#include "ci_hs_lpc18_43.h"
|
||||||
|
@ -27,14 +27,14 @@
|
|||||||
#include "tusb_option.h"
|
#include "tusb_option.h"
|
||||||
|
|
||||||
#if CFG_TUD_ENABLED && \
|
#if CFG_TUD_ENABLED && \
|
||||||
(CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX)
|
(CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT)
|
||||||
|
|
||||||
#warning "transdimenion is renamed to chipidea (portable/chipidea/ci_hs) to match other opensource naming convention such as linux. This file will be removed in the future, please update your makefile accordingly"
|
#warning "transdimenion is renamed to chipidea (portable/chipidea/ci_hs) to match other opensource naming convention such as linux. This file will be removed in the future, please update your makefile accordingly"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INCLUDE
|
// INCLUDE
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
#include "fsl_device_registers.h"
|
#include "fsl_device_registers.h"
|
||||||
#define INCLUDE_FSL_DEVICE_REGISTERS
|
#define INCLUDE_FSL_DEVICE_REGISTERS
|
||||||
#else
|
#else
|
||||||
@ -153,7 +153,7 @@ typedef struct
|
|||||||
const uint8_t ep_count; // Max bi-directional Endpoints
|
const uint8_t ep_count; // Max bi-directional Endpoints
|
||||||
}dcd_controller_t;
|
}dcd_controller_t;
|
||||||
|
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
static const dcd_controller_t _dcd_controller[] =
|
static const dcd_controller_t _dcd_controller[] =
|
||||||
{
|
{
|
||||||
// RT1010 and RT1020 only has 1 USB controller
|
// RT1010 and RT1020 only has 1 USB controller
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
// NXP Trans-Dimension USB IP implement EHCI for host functionality
|
// NXP Trans-Dimension USB IP implement EHCI for host functionality
|
||||||
|
|
||||||
#if CFG_TUH_ENABLED && \
|
#if CFG_TUH_ENABLED && \
|
||||||
(CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX)
|
(CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT)
|
||||||
|
|
||||||
#warning "transdimenion is renamed to chipidea (portable/chipidea/ci_hs) to match other opensource naming convention such as linux. This file will be removed in the future, please update your makefile accordingly"
|
#warning "transdimenion is renamed to chipidea (portable/chipidea/ci_hs) to match other opensource naming convention such as linux. This file will be removed in the future, please update your makefile accordingly"
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INCLUDE
|
// INCLUDE
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
#include "fsl_device_registers.h"
|
#include "fsl_device_registers.h"
|
||||||
#else
|
#else
|
||||||
// LPCOpen for 18xx & 43xx
|
// LPCOpen for 18xx & 43xx
|
||||||
@ -58,7 +58,7 @@ typedef struct
|
|||||||
const IRQn_Type irqnum; // IRQ number
|
const IRQn_Type irqnum; // IRQ number
|
||||||
}hcd_controller_t;
|
}hcd_controller_t;
|
||||||
|
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
|
||||||
static const hcd_controller_t _hcd_controller[] =
|
static const hcd_controller_t _hcd_controller[] =
|
||||||
{
|
{
|
||||||
// RT1010 and RT1020 only has 1 USB controller
|
// RT1010 and RT1020 only has 1 USB controller
|
||||||
|
@ -98,8 +98,8 @@ typedef int make_iso_compilers_happy;
|
|||||||
#define OPT_MCU_VALENTYUSB_EPTRI 600 ///< Fomu eptri config
|
#define OPT_MCU_VALENTYUSB_EPTRI 600 ///< Fomu eptri config
|
||||||
|
|
||||||
// NXP iMX RT
|
// NXP iMX RT
|
||||||
#define OPT_MCU_MIMXRT10XX 700 ///< NXP iMX RT10xx
|
#define OPT_MCU_MIMXRT 700 ///< NXP iMX RT Series
|
||||||
#define OPT_MCU_MIMXRT11XX 701 ///< NXP iMX RT11xx
|
#define OPT_MCU_MIMXRT10XX OPT_MCU_MIMXRT
|
||||||
|
|
||||||
// Nuvoton
|
// Nuvoton
|
||||||
#define OPT_MCU_NUC121 800
|
#define OPT_MCU_NUC121 800
|
||||||
|
Loading…
x
Reference in New Issue
Block a user