summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-09-11 15:45:26 +0700
committerhathach <[email protected]>2023-09-11 15:45:26 +0700
commit1eb0cb0c65077607944665013d4c60f8c8512ec5 (patch)
tree825f9fffc3eda3c32acc2594bb9256db52e249d3
parentab9585401b9964407cbf2bc7bffdf762353817f9 (diff)
update readme to include max3421 support
-rw-r--r--.github/workflows/build_arm.yml1
-rw-r--r--.github/workflows/cmake_arm.yml1
-rw-r--r--README.rst8
-rw-r--r--hw/bsp/nrf/boards/feather_nrf52840_express/board.cmake3
-rw-r--r--hw/bsp/nrf/boards/feather_nrf52840_express/board.mk3
5 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/build_arm.yml b/.github/workflows/build_arm.yml
index 70385bc1b..975f351a0 100644
--- a/.github/workflows/build_arm.yml
+++ b/.github/workflows/build_arm.yml
@@ -38,7 +38,6 @@ jobs:
- 'lpc11 lpc13 lpc15 lpc17'
- 'lpc51 lpc54'
- 'mm32 msp432e4'
- - 'nrf'
- 'samd11 same5x saml2x'
- 'stm32f2 stm32f3'
- 'stm32l0 stm32u5 stm32wb'
diff --git a/.github/workflows/cmake_arm.yml b/.github/workflows/cmake_arm.yml
index e3a00f9c5..4b788a213 100644
--- a/.github/workflows/cmake_arm.yml
+++ b/.github/workflows/cmake_arm.yml
@@ -38,6 +38,7 @@ jobs:
- 'lpc18 lpc40 lpc43'
- 'lpc55'
- 'mcx'
+ - 'nrf'
- 'ra'
- 'rp2040'
- 'samd21'
diff --git a/README.rst b/README.rst
index d72cdb149..aef310b98 100644
--- a/README.rst
+++ b/README.rst
@@ -33,6 +33,7 @@ Supported MCUs
The stack supports the following MCUs:
- **Allwinner:** F1C100s/F1C200s
+- **Analog:** MAX3421e (aka Arduino usb host shield)
- **Broadcom:** BCM2837, BCM2711
- **Dialog:** DA1469x
- **Espressif:** ESP32-S2, ESP32-S3
@@ -46,12 +47,13 @@ The stack supports the following MCUs:
- iMX RT Series: RT10xx, RT11xx
- Kinetis: KL25, K32L2
- LPC Series: 11u, 13, 15, 17, 18, 40, 43, 51u, 54, 55
+ - MCX: N9x
- **Raspberry Pi:** RP2040
- **Renesas:**
- - RX Series: 63N, 65N, 72N
- - RA Series: RA4M1, RA4M3
+ - RX Series: 63n, 65n, 72n
+ - RA Series: 4m1, 4m3, 6m1, 6m5
- **Silabs:** EFM32GG
- **Sony:** CXD56
@@ -87,6 +89,8 @@ Host Stack
- Human Interface Device (HID): Keyboard, Mouse, Generic
- Mass Storage Class (MSC)
+- Communication Device Class: CDC-ACM
+- Vendor serial over USB: FTDI, CP210x
- Hub with multiple-level support
Similar to the Device Stack, if you have a special requirement, `usbh_app_driver_get_cb()` can be used to write your own class driver without modifying the stack.
diff --git a/hw/bsp/nrf/boards/feather_nrf52840_express/board.cmake b/hw/bsp/nrf/boards/feather_nrf52840_express/board.cmake
index 78ed98225..ce6da8b43 100644
--- a/hw/bsp/nrf/boards/feather_nrf52840_express/board.cmake
+++ b/hw/bsp/nrf/boards/feather_nrf52840_express/board.cmake
@@ -2,5 +2,8 @@ set(MCU_VARIANT nrf52840)
#set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/../../linker/nrf52840_s140_v6.ld)
set(LD_FILE_GNU ${NRFX_DIR}/mdk/nrf52840_xxaa.ld)
+# enable max3421 host driver for this board
+set(MAX3421_HOST 1)
+
function(update_board TARGET)
endfunction()
diff --git a/hw/bsp/nrf/boards/feather_nrf52840_express/board.mk b/hw/bsp/nrf/boards/feather_nrf52840_express/board.mk
index b80807963..1f3772caf 100644
--- a/hw/bsp/nrf/boards/feather_nrf52840_express/board.mk
+++ b/hw/bsp/nrf/boards/feather_nrf52840_express/board.mk
@@ -1,6 +1,9 @@
MCU_VARIANT = nrf52840
CFLAGS += -DNRF52840_XXAA
+# enable max3421 host driver for this board
+#MAX3421_HOST = 1
+
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/nrf/linker/nrf52840_s140_v6.ld